Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        private void deviationList_Click(object sender, EventArgs e)
        {
            DeviationList deviationList = new DeviationList();

            deviationList.Show();
        }
Exemplo n.º 3
0
        private void listDeviationsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DeviationList deviationList = new DeviationList();

            deviationList.Show();
        }