Ejemplo n.º 1
0
        private void btn_StartUbuntu20Java_Click(object sender, EventArgs e)
        {
            RunScript runScript = new RunScript();

            if (lbl_NotContainer.Visible == true)
            {
                MessageBox.Show("Không tồn tại container nào !");
            }
            else if (lbl_Running.Visible == true)
            {
                MessageBox.Show("Container đang chạy !");
            }
            else if (runScript.Start() is true)
            {
                lbl_Running.Visible      = true;
                lbl_Existed.Visible      = false;
                lbl_NotContainer.Visible = false;
            }
            else
            {
                MessageBox.Show("Khởi chạy không thành công !");
            }
        }