示例#1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            MsgBox_Exc Form1 = new MsgBox_Exc();
            string     x     = Form1.ShowMsg("هل ترغب  بإنهاء هذه العملية؟", "أغلاق النافذة");

            if (x == "Ok")
            {
                this.Close();
            }
        }
示例#2
0
        private void RibbonButton8_Click(object sender, EventArgs e)
        {
            MsgBox_Exc Form1 = new MsgBox_Exc();
            string     x     = Form1.ShowMsg("هل ترغب  بإنهاء البرنامج؟", "أغلاق البرنامج");

            if (x == "Ok")
            {
                this.Close();
            }
            //DialogResult result = MessageBox.Show("هل ترغب في بإنهاء البرنامج؟", "", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading);
            //if (result == DialogResult.Yes) { this.Close(); }
        }
示例#3
0
        private void Button5_Click(object sender, EventArgs e)
        {
            MsgBox_Exc Form1 = new MsgBox_Exc();
            string     x     = Form1.ShowMsg("هل ترغب بالاستمرار؟" + "/n" + "اذا قمت بالضغط على زر تحديث فلن يمكنك التراجع فيما بعد وستفقد كافة المعلومات حول هذه الاحبار" + "/n" + "أن عملية حذف الحبر من هذه النافذه يعني حذفها بشكل كامل من المستودع", "تحذيرة");

            if (x == "Ok")
            {
                this.Close();
            }

            foreach (DataGridViewRow row in this.dataGridView1.SelectedRows)
            {
                this.dataGridView1.Rows.RemoveAt(row.Index);
            }
        }
示例#4
0
        private void Button6_Click(object sender, EventArgs e)
        {
            MsgBox_Exc MSG = new MsgBox_Exc();
            string     res = MSG.ShowMsg("هل ترغب بتفريغ الحقول؟", "تفريغ الحقول");

            if (res == "Ok")
            {
                textBox5.Text = "";
                textBox4.Text = "";
                dataGridView1.Rows.Clear();
                Colored_Check.Checked  = false;
                Scan_Check.Checked     = false;
                Ethernet_Check.Checked = false;
                Copy_Check.Checked     = false;
                Print_Check.Checked    = false;
            }
        }
示例#5
0
        private void Button1_Click(object sender, EventArgs e)
        {
            MsgBox_Exc MSG = new MsgBox_Exc();
            string     res = MSG.ShowMsg("هل ترغب بتفريغ الحقول؟", "تفريغ الحقول");

            if (res == "Ok")
            {
                Selected_value         = false;
                Inks.Checked           = false;
                Printers.Checked       = false;
                Hardware.Checked       = false;
                this.Company_name.Text = "";
                this.Phone.Text        = "";
                this.Location.Text     = "";
                button3.Text           = "حفظ";
            }
        }
示例#6
0
        private void Button3_Click_1(object sender, EventArgs e)
        {
            // DialogResult result =  MessageBox.Show("هل ترغب في تقريغ الحقول؟","", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading);
            // if (result == DialogResult.Yes)

            MsgBox_Exc MSG = new MsgBox_Exc();
            string     res = MSG.ShowMsg("هل ترغب بتفريغ الحقول؟", "تفريغ الحقول");

            if (res == "Ok")
            {
                Printer_Name  = "";
                textBox5.Text = "";
                textBox4.Text = "";
                textBox1.Text = "";
                dataGridView1.Rows.Clear();
                Colored_Check.Checked  = false;
                Scan_Check.Checked     = false;
                Ethernet_Check.Checked = false;
                Copy_Check.Checked     = false;
                Print_Check.Checked    = false;
            }
        }
示例#7
0
        public Add_printer_S()
        {
            Msg_Ex = new MsgBox_Exc();

            InitializeComponent();
        }