public MainForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); // // TODO: Add constructor code after the InitializeComponent() call. // foldername = null; isDelete = false; isErrorStop = false; StopPrint = false; Printting = false; interval = 30; ShowCB = new ShowInfoCallBack(ShowInfo); }
public MainForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); // // TODO: Add constructor code after the InitializeComponent() call. // foldername = null; isDelete = false; isErrorStop = false; StopPrint = false; Printting= false; interval = 30; ShowCB = new ShowInfoCallBack(ShowInfo); }
public MainForm() { if (IsProcessOpen()) { MessageBox.Show("Application is already running."); Application.Exit(); Environment.Exit(0); return; } InitializeComponent(); this.CenterToScreen(); this.notifyIcon1.Text = "Tự Động In Đơn Hàng"; ExcelReport test = new ExcelReport("A4"); dynamic item = "test"; test.Create(item, item); return; init_combo_size(); StopPrint = false; Printting = false; interval = 30; ShowCB = new ShowInfoCallBack(ShowInfo); CheckApplicationToStartup(); // Initialize Tray Icon TrayIcon.ContextMenu = new ContextMenu(new MenuItem[] { new MenuItem("Hiện Tự động In", ShowMainForm), new MenuItem("Thống Kê", ShowThongKe), new MenuItem("Thoát và Đăng xuất", DangXuat), new MenuItem("Thoát", ExitApp) }); TrayIcon.Visible = true; LoadSettings(); }