Exemplo n.º 1
0
        public From_Summary(ProcessesScheduling myScheduling)
        {
            InitializeComponent();
            this.myScheduling   = myScheduling;
            panelExColorProcess = new Panel[10];
            label_Aviral        = new Label[10];
            label_Burst         = new Label[10];
            label_Priority      = new Label[10];
            label_process       = new Label[10];

            accessContent();
            setVisibleContent();
            setVisibleLanguageBar();
            //set init Language.
            if (myScheduling.language == "EN")
            {
                comboBox_language.SelectedIndex = 0;
            }
            else if (myScheduling.language == "TH")
            {
                comboBox_language.SelectedIndex = 1;
            }

            setLanguage();

            clearData();
            setData();
        }
Exemplo n.º 2
0
        public Form_Setting(ProcessesScheduling myScheduling)
        {
            InitializeComponent();
            this.myScheduling = myScheduling;

            checkBox_avialable_lang_bar.Checked = myScheduling.flag_language_bar;
            //set init Language.
            if (myScheduling.language == "EN")
            {
                comboBox_language.SelectedIndex = 0;
            }
            else if (myScheduling.language == "TH")
            {
                comboBox_language.SelectedIndex = 1;
            }
            setLanguage();
        }
Exemplo n.º 3
0
 public Form_Menu(ProcessesScheduling myScheduling)
 {
     InitializeComponent();
     this.myScheduling = myScheduling;
     //set init Language.
     if (myScheduling.language == "EN")
     {
         comboBox_language.SelectedIndex = 0;
     }
     else if (myScheduling.language == "TH")
     {
         comboBox_language.SelectedIndex = 1;
     }
     setVisibleLanguageBar();
     setLanguage();
     setContent();
 }
Exemplo n.º 4
0
        public Input_Form(ProcessesScheduling myScheduling)
        {
            InitializeComponent();
            this.myScheduling = myScheduling;
            accessContent();
            setVisibleLanguageBar();
            //set init Language.
            if (myScheduling.language == "EN")
            {
                comboBox_language.SelectedIndex = 0;
            }
            else if (myScheduling.language == "TH")
            {
                comboBox_language.SelectedIndex = 1;
            }
            setLanguage();


            setEnableContent();
            setValueFromObject();
        }
Exemplo n.º 5
0
        public Form_About(ProcessesScheduling myScheduling)
        {
            InitializeComponent();
            this.myScheduling             = myScheduling;
            comboBox_rating.SelectedIndex = 0;

            setVisibleLanguageBar();

            //set init Language.
            if (myScheduling.language == "EN")
            {
                comboBox_language.SelectedIndex = 0;
            }
            else if (myScheduling.language == "TH")
            {
                comboBox_language.SelectedIndex = 1;
            }
            setLanguage();

            label_versionProgram.Text = "" + myScheduling.version_Program;
            label_updateDate.Text     = "" + myScheduling.update_Date;
        }
Exemplo n.º 6
0
        public Result_form1(ProcessesScheduling myScheduling)
        {
            InitializeComponent();
            this.myScheduling = myScheduling;

            panelExColorProcess   = new Panel[10];
            processWaitingTime    = new Label[10];
            processTurnaroundTime = new Label[10];
            label_process         = new Label[10];

            accessContent();
            setVisibleContent();
            setVisibleLanguageBar();

            //set init Language.
            if (myScheduling.language == "EN")
            {
                comboBox_language.SelectedIndex = 0;
            }
            else if (myScheduling.language == "TH")
            {
                comboBox_language.SelectedIndex = 1;
            }

            setLanguage();



            panelArray      = new Panel[myScheduling.number_ganttChart];
            valueGanttChart = new Label[myScheduling.number_ganttChart];

            setEnableButtonMenu();
            setColorButtonMenu();
            setVisibleQuantumTime(false);

            // Check want display Gantt Chart.
            if (myScheduling.getFlagDisplayChart())
            {
                DrawGanttChart();
            }

            if (myScheduling.getFlagFCFS())
            {
                btn_FCFS.BackColor = color_btn_choose;
                if (myScheduling.getFlagDisplayChart())
                {
                    putColorInPanel("FCFS");
                }
                displayFCFS();
            }
            else if (myScheduling.getFlagSJF_P())
            {
                btn_SJF_P.BackColor = color_btn_choose;
                if (myScheduling.getFlagDisplayChart())
                {
                    putColorInPanel("SJF_P");
                }
                displaySJF_P();
            }
            else if (myScheduling.getFlagSJF_N())
            {
                btn_SJF_N.BackColor = color_btn_choose;
                if (myScheduling.getFlagDisplayChart())
                {
                    putColorInPanel("SJF_N");
                }
                displaySJF_N();
            }
            else if (myScheduling.getFlagPriority_P())
            {
                btn_Priority_P.BackColor = color_btn_choose;
                if (myScheduling.getFlagDisplayChart())
                {
                    putColorInPanel("Priority_P");
                }
                displayPriority_P();
            }
            else if (myScheduling.getFlagPriority_N())
            {
                btn_Priority_N.BackColor = color_btn_choose;
                if (myScheduling.getFlagDisplayChart())
                {
                    putColorInPanel("Priority_N");
                }
                displayPriority_N();
            }
            else if (myScheduling.getFlagRR())
            {
                setVisibleQuantumTime(true);
                numeric_quantumTime.Value = myScheduling.getQuantumTime();
                btn_RR.BackColor          = color_btn_choose;
                if (myScheduling.getFlagDisplayChart())
                {
                    putColorInPanel("RR");
                }
                displayRR();
            }
        }
Exemplo n.º 7
0
 public Form1(ProcessesScheduling myScheduling)
 {
     InitializeComponent();
     this.myScheduling = myScheduling;
     setLanguage();
 }
Exemplo n.º 8
0
 public Form1()
 {
     InitializeComponent();
     myScheduling = new ProcessesScheduling();
 }