//Get the system public static SystemHandler InitializeSystem() { if (mainSystem == null) { mainSystem = new SystemHandler(); } return(mainSystem); }
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")); }
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(); } }
private void ViewMachine(object sender, EventArgs e) { MessageBox.Show(SystemHandler.GetRawData(txtInputMachine.Text), "Raw Machine", MessageBoxButtons.OK); }