예제 #1
0
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            Class_Disrepair    D  = new Class_Disrepair();
            Form_EditDisrepair _f = new Form_EditDisrepair(D);

            _f.ShowDialog();
            Load_Data();
        }
예제 #2
0
        private void toolStripBupdate_Click(object sender, EventArgs e)
        {
            Class_Disrepair    D  = (Class_Disrepair)BSDisrepair.Current;
            Form_EditDisrepair _f = new Form_EditDisrepair(D);

            if (D != null)
            {
                _f.ShowDialog();
                Load_Data();
            }
            else
            {
                MessageBox.Show("Выберите неисправность");
            }
        }