Sort the RO values / Groups alphabetically
Don't sort the Multiple return values Added logic to set the name of the error log file
This commit is contained in:
parent
fab1e8935e
commit
66f9ef6f23
@ -317,7 +317,9 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
tmp = new TreeNode(chld[i].title);
|
tmp = new TreeNode(chld[i].title);
|
||||||
tmp.Tag = chld[i];
|
tmp.Tag = chld[i];
|
||||||
tn.Nodes.Add(tmp);
|
//tn.Nodes.Add(tmp);
|
||||||
|
int index = FindIndex(tn.Nodes, tmp.Text);
|
||||||
|
tn.Nodes.Insert(index, tmp);
|
||||||
TreeNode sub = new TreeNode("VLN_DUMMY_FOR_TREE");
|
TreeNode sub = new TreeNode("VLN_DUMMY_FOR_TREE");
|
||||||
tmp.Nodes.Add(sub);
|
tmp.Nodes.Add(sub);
|
||||||
}
|
}
|
||||||
@ -336,8 +338,13 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
tmp = new TreeNode(chld[i].title.Replace(@"\u160?"," "));
|
tmp = new TreeNode(chld[i].title.Replace(@"\u160?"," "));
|
||||||
tmp.Tag = chld[i];
|
tmp.Tag = chld[i];
|
||||||
int index = FindIndex(tn.Nodes, tmp.Text);
|
if (chld[i].roid.Length == 16)
|
||||||
tn.Nodes.Insert(index,tmp);
|
tn.Nodes.Add(tmp.Text);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
int index = FindIndex(tn.Nodes, tmp.Text);
|
||||||
|
tn.Nodes.Insert(index, tmp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
public partial class frmSendErrorLog : Form
|
public partial class frmSendErrorLog : Form
|
||||||
{
|
{
|
||||||
private string _ErrorLogPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\ErrorLog.txt";
|
private string _ErrorLogPath;
|
||||||
public bool OutlookEmail
|
public bool OutlookEmail
|
||||||
{
|
{
|
||||||
get { return rbOutlook.Checked; }
|
get { return rbOutlook.Checked; }
|
||||||
@ -39,13 +39,14 @@ namespace Volian.Controls.Library
|
|||||||
get { return tbUsername.Text; }
|
get { return tbUsername.Text; }
|
||||||
set { tbUsername.Text = value; }
|
set { tbUsername.Text = value; }
|
||||||
}
|
}
|
||||||
public frmSendErrorLog(bool outlookEmail, string smtpServer, string smtpUser)
|
public frmSendErrorLog(bool outlookEmail, string smtpServer, string smtpUser, string errorlogpath)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
tbPassword.PasswordChar = '\u25CF';
|
tbPassword.PasswordChar = '\u25CF';
|
||||||
OutlookEmail = outlookEmail;
|
OutlookEmail = outlookEmail;
|
||||||
SMTPServer = smtpServer;
|
SMTPServer = smtpServer;
|
||||||
SMTPUser = smtpUser;
|
SMTPUser = smtpUser;
|
||||||
|
_ErrorLogPath = errorlogpath;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void emailSettingChanged(object sender, EventArgs e)
|
private void emailSettingChanged(object sender, EventArgs e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user