Beispiel #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);
            }
        }
Beispiel #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;
            }
        }
        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;
            }
        }
 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);
     }
 }