Example #1
0
        private void pbclick(string str1, string str2, string str3)
        {
            if (File.Exists("boxes.xml"))
            {
                try
                {
                    boxlist.LoadList("boxes.xml");
                }
                catch (System.Exception ex)
                {
                    Close();
                }

                string tmpboxname;
                int tmpnum;

                if (radioButton1.Checked == true)
                {
                    boxes box = new boxes();
                    box = boxlist.FindCLass(str1);
                    tmpboxname = box.box_number;
                    tmpnum = box.n;

                    if (box.box_status == "свободен")
                    {
                        info_order_user orderbox = new info_order_user(tmpboxname, PLogin, 1);
                        orderbox.ShowDialog();
                        scarlett_johansson();
                        iRefreshForm(0);
                    }
                    else
                    {
                        info_order_user infobox = new info_order_user(tmpboxname, PLogin, 0);
                        infobox.ShowDialog();
                        iRefreshForm(0);
                    }
                }
                else if (radioButton2.Checked == true)
                {
                    boxes box = new boxes();
                    box = boxlist.FindCLass(str2);
                    tmpboxname = box.box_number;
                    tmpnum = box.n;

                    if (box.box_status == "свободен")
                    {
                        info_order_user orderbox = new info_order_user(tmpboxname, PLogin, 1);
                        orderbox.ShowDialog();
                        scarlett_johansson();
                        iRefreshForm(12);
                    }
                    else
                    {
                        info_order_user infobox = new info_order_user(tmpboxname, PLogin, 0);
                        infobox.ShowDialog();
                        iRefreshForm(12);
                    }
                }
                else if (radioButton3.Checked == true)
                {
                    boxes box = new boxes();
                    box = boxlist.FindCLass(str3);
                    tmpboxname = box.box_number;
                    tmpnum = box.n;

                    if (box.box_status == "свободен")
                    {
                        info_order_user orderbox = new info_order_user(tmpboxname, PLogin, 1);
                        orderbox.ShowDialog();
                        scarlett_johansson();
                        iRefreshForm(24);
                    }
                    else
                    {
                        info_order_user infobox = new info_order_user(tmpboxname, PLogin, 0);
                        infobox.ShowDialog();
                        iRefreshForm(24);
                    }
                }
            }
        }
Example #2
0
        private void stripinfoclick(string str1, string str2, string str3)
        {
            if (File.Exists("boxes.xml"))
            {
                try
                {
                    boxlist.LoadList("boxes.xml");
                }
                catch (System.Exception ex)
                {
                    Close();
                }

                string tmpboxname;

                if (radioButton1.Checked == true)
                {
                    boxes box = new boxes();
                    box = boxlist.FindCLass(str1);
                    tmpboxname = box.box_number;

                    info_order_user infobox = new info_order_user(tmpboxname, PLogin, 0);
                    infobox.ShowDialog();
                    iRefreshForm(0);
                }
                else if (radioButton2.Checked == true)
                {
                    boxes box = new boxes();
                    box = boxlist.FindCLass(str2);
                    tmpboxname = box.box_number;

                    info_order_user infobox = new info_order_user(tmpboxname, PLogin, 0);
                    infobox.ShowDialog();
                    iRefreshForm(12);
                }
                else if (radioButton3.Checked == true)
                {
                    boxes box = new boxes();
                    box = boxlist.FindCLass(str3);
                    tmpboxname = box.box_number;

                    info_order_user infobox = new info_order_user(tmpboxname, PLogin, 0);
                    infobox.ShowDialog();
                    iRefreshForm(24); ;
                }
            }
        }