Esempio n. 1
0
 //Get the system
 public static SystemHandler InitializeSystem()
 {
     if (mainSystem == null)
     {
         mainSystem = new SystemHandler();
     }
     return(mainSystem);
 }
Esempio n. 2
0
        public frmMain()
        {
            InitializeComponent();
            lbl_result.Text = "";
            mainSystem      = SystemHandler.InitializeSystem();

            //DEBUG
            //mainSystem.ExportMachine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "machineC.xml"));
            //mainSystem.ExportString(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "inputA.xml"));
        }
Esempio n. 3
0
 private void ExitApplication(object s, EventArgs e)
 {
     try
     {
         if (MessageBox.Show("Are you sure you want to exit?", "Exit Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
         {
             SystemHandler.PrintLog();
             Application.Exit();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);
         Application.Exit();
     }
 }
Esempio n. 4
0
 private void ViewMachine(object sender, EventArgs e)
 {
     MessageBox.Show(SystemHandler.GetRawData(txtInputMachine.Text), "Raw Machine", MessageBoxButtons.OK);
 }