private void saverawtinfirstdurationbtn_Click(object sender, EventArgs e)
        {
            long id = check_if_specification_exists_or_not();

            if (id == 0)
            {
                //error

                long sid = savetofirstduration_rawtin();
                if (sid == 0)
                {
                    //error
                }
                else
                {
                    save_raw_tin_quantites(sid);
                    MessageBox.Show("تم الحفظ بنجاح", "معلومات", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading);
                }
            }
            else
            {
                update_specifiction_quanities(id);
                save_raw_tin_quantites(id);
                MessageBox.Show("تم الحفظ بنجاح", "معلومات", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading);
            }
            this.Hide();
            using (addnewrowtinfd myform = new addnewrowtinfd(mEmployee, mAccount, mPermission))
            {
                myform.ShowDialog();
            }
            this.Close();
            // }
        }
예제 #2
0
        private void إضافةرصيدأولالمدةToolStripMenuItem_Click(object sender, EventArgs e)
        {
            addnewrowtinfd myform = new addnewrowtinfd(mEmployee, mAccount, mPermission);


            myform.Show();
        }
 private void add_new_raw_tn_info_Click(object sender, EventArgs e)
 {
     this.Hide();
     using (addnewrowtinfd myform = new addnewrowtinfd(mEmployee, mAccount, mPermission))
     {
         myform.ShowDialog();
     }
     this.Close();
 }