Ejemplo n.º 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_box infobox = new info_box(tmpboxname, 1);
                        infobox.ShowDialog();
                        scarlett_johansson();
                        iRefreshForm(0);
                    }
                    else
                    {
                        info_box infobox = new info_box(tmpboxname, 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_box infobox = new info_box(tmpboxname, 1);
                        infobox.ShowDialog();
                        scarlett_johansson();
                        iRefreshForm(12);
                    }
                    else
                    {
                        info_box infobox = new info_box(tmpboxname, 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_box infobox = new info_box(tmpboxname, 1);
                        infobox.ShowDialog();
                        scarlett_johansson();
                        iRefreshForm(24);
                    }
                    else
                    {
                        info_box infobox = new info_box(tmpboxname,0);
                        infobox.ShowDialog();
                        iRefreshForm(24);
                    }
                }
            }
        }
Ejemplo n.º 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_box infobox = new info_box(tmpboxname,0);
                    infobox.ShowDialog();
                    iRefreshForm(0);
                }
                else if (radioButton2.Checked == true)
                {
                    boxes box = new boxes();
                    box = boxlist.FindCLass(str2);
                    tmpboxname = box.box_number;

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

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