Ejemplo n.º 1
0
        public void Clic_butEnter(string InterfaceID, string Nomber, string loginuser)
        {
            NOMBER = Nomber;
            //MessageBox.Show(InterfaceID+" "+NOMBER+" "+LoginUser, "Проверка");
            //InterfaceID; какую форму открыть
            #region FormForemen
            if (InterfaceID == "Бригадир")
            {
                Foremen FormForeman = new Foremen(NOMBER, loginuser);
                FormForeman.Show();
            }
            #endregion

            #region FormHeadliner
            if (InterfaceID == "Начальник")
            {
                Headliner FormHeadliner = new Headliner(loginuser);
                FormHeadliner.Show();
            }
            #endregion

            #region CallManager
            if (InterfaceID == "Диспетчер")
            {
                CallManager callManager = new CallManager(loginuser);
                callManager.Show();
            }
            #endregion
        }
Ejemplo n.º 2
0
 private void InfoOrder_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (CallMenedger_Foremen == false)
     {
         Foremen foremen = (Foremen)this.Owner;
         foremen.UpdateData();
         if (Act)
         {
             foremen.groupAct.Enabled = true;
         }
     }
     if (connection != null)
     {
         transaction.CloseConnect();
     }
 }