예제 #1
0
파일: Form1.cs 프로젝트: xkolm036/RLMS
        public Form1()
        {
            InitializeComponent();

            dataGridView1.Font = new Font("arial", 18);
            dataGridView1.AutoGenerateColumns     = false;
            dataGridView1.ColumnCount             = 2;
            dataGridView1.AutoSize                = true;
            dataGridView1.AutoSizeColumnsMode     =
                dataGridView1.AutoSizeColumnsMode =
                    DataGridViewAutoSizeColumnsMode.AllCells;


            this.Text = AppData.selectedServer.ServerName;
            textBox_ServerName.Text = AppData.selectedServer.ServerName;

            createtable(); //vytvori datagrid a naplni textboxy
            editlogic();   // edit radiobutton logika


            Form1_logic.CreatePicture(ref pictureBox_Home, 50, 50, pictureName: "home.png");
            Form1_logic.CreatePicture(ref pictureBox_Plus, 35, 35, pictureName: "plus.png");
            Form1_logic.CreatePicture(ref pictureBox_Minus, 35, 35, pictureName: "minus.png");
            Form1_logic.CreatePicture(ref pictureBox_DeleteServer, 50, 50, pictureName: "deleteServer.png");
        }
예제 #2
0
        int DTflowLayoutContendWidth = 0; // sirka obrazku s datadiskama

        public Home_screen()
        {
            InitializeComponent();


            if (AppData.Database == null)
            {
                try
                {
                    AppData.Database = new List <Datadisk>(XML.ReadXMlFile());
                    fillDatadisk();
                }
                catch
                {
                    MessageBox.Show("Nepodarilo se najit soubor s db");
                    AppData.Database = new List <Datadisk>();
                }
            }

            Form1_logic.CreatePicture(ref pictureBox_Home, 50, 50, pictureName: RLMS_NEW.Icon.home);
            Form1_logic.CreatePicture(ref pictureBox_AddServer, 50, 50, pictureName: RLMS_NEW.Icon.plus);
            Form1_logic.CreatePicture(ref pictureBox_DeleteDatadisk, 20, 20, pictureName: RLMS_NEW.Icon.minus);
            Form1_logic.CreatePicture(ref pictureBox_RenameDatadisk, 20, 20, pictureName: RLMS_NEW.Icon.pen);
        }
예제 #3
0
파일: Form1.cs 프로젝트: xkolm036/RLMS
 private void button1_Click_1(object sender, EventArgs e)
 {
     Form1_logic.runExe(AppData.selectedServer.ExePath);
 }
예제 #4
0
파일: Form1.cs 프로젝트: xkolm036/RLMS
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Form1_logic.openWebPage(AppData.selectedServer.Website);
 }