public SaveDeviation(String actionType, DeviationList deviationList, PrincipalWin principalWin) { InitializeComponent(); deviationModel = new DeviationModel(); emailSender = new EmailSender(); languageModel = new LanguageModel(); this.actionType = actionType; this.deviationList = deviationList; this.principalWin = principalWin; //set language if (LanguageName.languageName != "DeviationManager.Lang.language_en") { this.setLanguage(); } initialize(); if (actionType == "newDeviation") { addApproval(); setSignature(); //approvement Table readonly this.approvementGroupDataGrid.ReadOnly = true; } }
private void deviationList_Click(object sender, EventArgs e) { DeviationList deviationList = new DeviationList(); deviationList.Show(); }
private void listDeviationsToolStripMenuItem_Click(object sender, EventArgs e) { DeviationList deviationList = new DeviationList(); deviationList.Show(); }