コード例 #1
0
        protected override void Add()
        {
            base.Add();
            Dialog_AddEditSubFamily Dialog_AddEditSubFamily = new Dialog_AddEditSubFamily();

            Dialog_AddEditSubFamily.ShowDialog(this);
        }
コード例 #2
0
        protected override void Modify()
        {
            base.Modify();

            if (IsChoosen)
            {
                int    RefSubFamily  = int.Parse(this.ListViewBasic.SelectedItems[0].Text);
                string NameFamily    = this.ListViewBasic.SelectedItems[0].SubItems[1].Text;
                string NameSubFamily = this.ListViewBasic.SelectedItems[0].SubItems[2].Text;
                Dialog_AddEditSubFamily Dialog_AddEditSubFamily =
                    new Dialog_AddEditSubFamily(RefSubFamily, NameFamily, NameSubFamily);
                Dialog_AddEditSubFamily.ShowDialog(this);
            }
        }