예제 #1
0
        private void tsmTechnicalUpdate_Click(object sender, EventArgs e)
        {
            TechnicalUpdateUI _TechnicalUpdate    = new TechnicalUpdateUI();
            TabPage           _TechnicalUpdateTab = new TabPage();

            _TechnicalUpdateTab.ImageIndex = 9;
            _TechnicalUpdate.ParentList    = this;
            displayControlOnTab(_TechnicalUpdate, _TechnicalUpdateTab);
        }
예제 #2
0
        private void btnCheckTableUpdates_Click(object sender, EventArgs e)
        {
            if (!GlobalFunctions.checkRights("tsmBackupRestore", "Check Table Updates"))
            {
                return;
            }
            TechnicalUpdateUI loCheckTableUpdate = new TechnicalUpdateUI();

            loCheckTableUpdate.ShowDialog();
        }
예제 #3
0
        private void tsmTechnicalUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                //check technical support username and password
                if (GlobalVariables.Username == "technicalsupport")
                {
                    foreach (TabPage _tab in this.tbcNSites_V.TabPages)
                    {
                        if (_tab.Text == "Technical Update")
                        {
                            tbcNSites_V.SelectedTab = _tab;
                            return;
                        }
                    }

                    TechnicalUpdateUI _TechnicalUpdate    = new TechnicalUpdateUI();
                    TabPage           _TechnicalUpdateTab = new TabPage();
                    _TechnicalUpdateTab.ImageIndex = 7;
                    _TechnicalUpdate.ParentList    = this;
                    displayControlOnTab(_TechnicalUpdate, _TechnicalUpdateTab);
                }
                else
                {
                    MessageBoxUI ms = new MessageBoxUI("Only JC Technical Support can open this Function!", GlobalVariables.Icons.Error, GlobalVariables.Buttons.OK);
                    ms.showDialog();
                    return;
                }
            }
            catch (Exception ex)
            {
                ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "tsmTechnicalUpdate_Click");
                em.ShowDialog();
                return;
            }
        }