Example #1
0
        private void btnAddIncludePath_Click(object sender, EventArgs e)
        {
            IncludedPathForm dlg = new IncludedPathForm();

            dlg.StartPosition = FormStartPosition.CenterParent;
            DialogResult dr = dlg.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                this.lbIncludedPath.Items.Add(dlg.IncludedPath);
            }
        }
Example #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            IncludedPath includedPath = this.lbIncludedPath.SelectedItem as IncludedPath;

            IncludedPathForm dlg = new IncludedPathForm();

            dlg.StartPosition = FormStartPosition.CenterParent;

            dlg.SetIncludedPath(includedPath);

            DialogResult dr = dlg.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                this.lbIncludedPath.Items[this.lbIncludedPath.SelectedIndex] = dlg.IncludedPath;
            }
        }
Example #3
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            IncludedPath includedPath = this.lbIncludedPath.SelectedItem as IncludedPath;

            IncludedPathForm dlg = new IncludedPathForm();
            dlg.StartPosition = FormStartPosition.CenterParent;

            dlg.SetIncludedPath(includedPath);

            DialogResult dr = dlg.ShowDialog(this);
            if (dr == DialogResult.OK)
            {
                this.lbIncludedPath.Items[this.lbIncludedPath.SelectedIndex] = dlg.IncludedPath;
            }
        }
Example #4
0
 private void btnAddIncludePath_Click(object sender, EventArgs e)
 {
     IncludedPathForm dlg = new IncludedPathForm();
     dlg.StartPosition = FormStartPosition.CenterParent;
     DialogResult dr = dlg.ShowDialog(this);
     if (dr == DialogResult.OK)
     {
         this.lbIncludedPath.Items.Add(dlg.IncludedPath);
     }
 }