Beispiel #1
0
        protected override void lvwItems_DoubleClick(object sender, EventArgs e)
        {
            base.lvwItems_DoubleClick(sender, e);

            int tmpID = Convert.ToInt32(lvwItems.SelectedItems[0].Text);

            if (base.mbIsSelect == true)
            {
                if (OnItemSelected != null)
                {
                    OnItemSelected(tmpID);
                }

                this.Close();
            }
            else
            {
                FBusiness_Unit_AddEdit dae = new FBusiness_Unit_AddEdit();

                dae.OnNewItem += new NewItemCreated(EditChange);
                //dae.LoadByID(tmpID);
                dae.ShowDialog();
                dae.OnNewItem -= new NewItemCreated(EditChange);

                dae.Close();
                dae = null;
            }
        }
Beispiel #2
0
        protected override void bttNew_Click(object sender, EventArgs e)
        {
            base.bttNew_Click(sender, e);

            //FDept_AddEdit dae = new FDept_AddEdit();
            FBusiness_Unit_AddEdit dae = new FBusiness_Unit_AddEdit();

            dae.OnNewItem += new NewItemCreated(EditChange);
            dae.ShowDialog();
            dae.OnNewItem -= new NewItemCreated(EditChange);

            dae.Close();
            dae = null;
        }