private void MainMenu_Load(object sender, EventArgs e) { try { //CreateCurrentVersionFile(); //CheckUpdaterAppDone(); dateTimePickerFinishWorkOrder.MinDate = dateTimePickerStartWorkOrder.Value; int currentDay = (int)DateTime.Now.DayOfWeek; string currentDayString = ((DaysOfWeek)currentDay).ToString(); this.IsMdiContainer = true; if (CheckAlreadyRunningApp.CheckApp()) { MessageBox.Show("Uygulama Zaten Şuanda Çalışmakta !", "Uygulama Arka Planda Çalışıyor"); System.Diagnostics.Process.GetCurrentProcess().Kill(); } this.Text = System.Environment.MachineName + "/ Hakedis /" + userTypeString + "/" + version; BackupData(currentDayString); //Form size belirleme this.MinimumSize = new System.Drawing.Size(this.Width, this.Height); this.MaximumSize = new System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); // ReadWorkOrderJson(); AddSearchFilterTitle(); //int remainingWeek = ; DateInfoStatusApp(); CheckLastUpdateDate(); GC.Collect(); GC.WaitForPendingFinalizers(); cmbWorkOrderFilter.SelectedIndex = 0; } catch (Exception) { throw; } }
private void LoginMenuForm_Load(object sender, EventArgs e) { if (CheckAlreadyRunningApp.CheckApp()) { MessageBox.Show("Uygulama Şuanda Çalışmakta !"); System.Diagnostics.Process.GetCurrentProcess().Kill(); } else { } GC.Collect(); GC.WaitForPendingFinalizers(); }