Ejemplo n.º 1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            FrmAddItem frmAddItem = new FrmAddItem();

            frmAddItem.IsInclude     = IsInclude;
            frmAddItem.StartPosition = FormStartPosition.CenterParent;
            frmAddItem.ShowDialog(this);
        }
Ejemplo n.º 2
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            if (this.listBoxSelections.SelectedRows.Count > 0)
            {
                var        item       = this.listBoxSelections.SelectedRows[0].Cells[0].Value.ToString();
                var        itemType   = this.listBoxSelections.SelectedRows[0].Cells[1].Value.ToString();
                FrmAddItem frmAddItem = new FrmAddItem();

                frmAddItem.ItemType      = Convert.ToInt32(itemType);
                frmAddItem.IsInclude     = IsInclude;
                frmAddItem.ItemPath      = item.ToString();
                frmAddItem.StartPosition = FormStartPosition.CenterParent;
                frmAddItem.ShowDialog(this);
            }
        }