Example #1
0
        private void toolStripMenuItem_AddData_Click(object sender, EventArgs e)
        {
            FormAmmAdd form = new FormAmmAdd();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                toolStripLoadData(this, EventArgs.Empty);
            }
        }
Example #2
0
        void menuItem_CloneAdd_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();

            FormAmmAdd form = new FormAmmAdd();

            form.CurrentData = (P_AmmeterInfo)this.SelectedNode.Tag;
            // form.ShowDialog(this);
            if (form.ShowDialog() == DialogResult.OK)
            {
                this.LoadData(AmmeterDB.LoadAmmInfoFromDatabase());
            }
        }