Beispiel #1
0
 public Proper(Main_Window main_)
 {
     InitializeComponent(main_.first, main_.second, main_.therd, main_.text);
     textBox1.Text     = External_Controller.Controller.input;
     textBox2.Text     = External_Controller.Controller.output;
     checkBox1.Checked = External_Controller.Controller.Auto;
     main         = main_;
     main.Enabled = false;
 }
Beispiel #2
0
        public Hello_Form(Main_Window main_, string[] args)
        {
            arg = args;
            InitializeComponent();
            main              = main_;
            ClientSize        = new System.Drawing.Size(800, 440);
            pictureBox1.Image = Image.FromFile(Application.StartupPath + "\\Resources\\Image\\Logo.jpg");
            Timer timer = new Timer();

            timer.Interval = 3000;
            timer.Tick    += new EventHandler(this.timer_Tick);
            timer.Start();
        }
Beispiel #3
0
 public Create_new_project(Main_Window main_, bool butt3)
 {
     main = main_;
     InitializeComponent(main_.first, main_.second, main_.therd, main_.text);
     if (!butt3)
     {
         button3.Text   = "Выход";
         button3.Click -= button3_Click;
         button3.Click += new EventHandler(Exit);
     }
     else
     {
         MessageBox.Show("Создание нового проекта, приведет к потере изменений", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Beispiel #4
0
        public Info(Main_Window main_)
        {
            main = main_;
            InitializeComponent(main_.first, main_.second, main_.therd, main_.text);
            FileStream   file   = new FileStream(Application.StartupPath + "\\Resources\\Spravka\\Spravka.txt", FileMode.Open);
            StreamReader reader = new StreamReader(file);

            while (!reader.EndOfStream)
            {
                string[] s = new string[3];
                for (int i = 0; i < 3; i++)
                {
                    for (string read = reader.ReadLine(); read != "~"; read = reader.ReadLine())
                    {
                        s[i] += read + ((i < 2) ?"\n" : "");
                    }
                }
                datas.Add(new data(s[0], s[1], s[2]));
            }
            reader.Close();
            file.Close();
            FormClosing += new FormClosingEventHandler(Close_Event);
            int x = 15, w = Convert.ToInt32(panel2.Width * 0.8), h = 30, y = 10;

            for (int i = 0; i < datas.Count; i++)
            {
                Button button = new Button();
                button.Text     = datas[i].name;
                button.Location = new Point(x, y);
                y               += 10 + h;
                button.Size      = new Size(w, h);
                button.BackColor = main_.therd;
                button.ForeColor = main_.text;
                panel2.Controls.Add(button);
                button.Show();
                button.Click += new EventHandler(Button_Click);
            }
        }