Exemple #1
0
        private void OptionSettingRuttin()
        {
            DialogForm   dialog = new DialogForm(m_ControlBoard, m_settingValues, m_memoryManger);
            DialogResult dr     = dialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                //MessageBox.Show(settingData.value_conveyorSpeed + " "
                //    + settingData.value_XAxisDistance
                //    + settingData.value_ConvererRollerSpeed);

                // initFile에 저장
                IniFileManager.SetSetting_ConveyerSpeed(m_settingValues.value_conveyorSpeed);
                IniFileManager.SetSetting_XXaisDistance(m_settingValues.value_XAxisDistance);
                IniFileManager.SetSetting_ConverterRollerSpeed(m_settingValues.value_ConvererRollerSpeed);

                // 저장메시지 전송
                // SendSettingValues(settingData);
            }
            else if (dr == DialogResult.Cancel)
            {
                ;
            }
            m_ControlBoard.SendMessage(MessageGenerator.Meesage_Infom(MessageProtocol.CMD_INFORM_SETTING_CLOSE));
        }
Exemple #2
0
        private void SettingInit()
        {
            m_settingValues = new SettingValues();
            m_settingValues.value_conveyorSpeed       = IniFileManager.GetSetting_ConveyerSpeed();
            m_settingValues.value_XAxisDistance       = IniFileManager.GetSetting_XXaisDistance();
            m_settingValues.value_ConvererRollerSpeed = IniFileManager.GetSetting_ConverterRollerSpeed();

            // set for machine
            //SendSettingValues(settingValues);
        }
Exemple #3
0
        private void ModeInit()
        {
            m_isBarcodeReadMode_On = IniFileManager.GetMode_BarcodeRead();
            m_isAutoStopMode_On    = IniFileManager.GetMode_AutoStop();

            if (m_isBarcodeReadMode_On == true)
            {
                btn_BarcodeReadOn.ButtonDown();
            }
            else
            {
                btn_BarcodeReadOff.ButtonDown();
            }

            if (m_isAutoStopMode_On == true)
            {
                btn_AutoStopModeOn.ButtonDown();
            }
            else
            {
                btn_AutoStopModeOff.ButtonDown();
            }
        }
Exemple #4
0
 static void Main()
 {
     IniFileManager.IniFileExistCheckAndGenerateDefaultIniFIle();    // Setting.ini 파일 확인 및 생성
     // AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
     Application.Run(new Form1());
 }
Exemple #5
0
 private void btn_AutoStopModeOff_Click(object sender, EventArgs e)
 {
     m_isAutoStopMode_On = false;
     IniFileManager.SetMode_AutoStop(m_isAutoStopMode_On);
 }
Exemple #6
0
 private void radioButton_BarcodeReadOff_Click(object sender, EventArgs e)
 {
     m_isBarcodeReadMode_On = false;
     IniFileManager.SetMode_BarcodeRead(m_isBarcodeReadMode_On);
 }