public FormMain()
        {
            InitializeComponent();

            formFunctionPointer          += new functioncall(ShowUserInfoInLayout);
            ucCaiDat1.userFunctionPointer = formFunctionPointer;
        }
Example #2
0
        private void MenuBtnCertificate_Click(object sender, EventArgs e)
        {
            Button button = ((Button)sender);

            //Add module1 to panel control
            if (!panelMain.Controls.Contains(UC_Certification.Instance))
            {
                panelMain.Controls.Add(UC_Certification.Instance);
                UC_Certification.Instance.Dock = DockStyle.Fill;
                UC_Certification.Instance.BringToFront();

                ReceiverFromMatriceFormation += new ClickOnFormationMenuBtn(clickButtonFormationMenu);
                UC_Certification.Instance.PointerFormation = ReceiverFromMatriceFormation;

                ReceiverFromFicheFormation += new functioncall(AgentSelectedInFormationCard);
                UC_Certification.Instance.PointerFormation = ReceiverFromFicheFormation;

                ReceiverRefreshListeAgent += new refreshFicheAgent(refreshFormAgent);
                UC_Certification.Instance.MainWindowPointerMenuBtnAgent = ReceiverRefreshListeAgent;
            }
            else
            {
                UC_Certification.Instance.BringToFront();
            }
            button.BackColor = Color.FromArgb(67, 100, 214);
            button.FlatStyle = FlatStyle.Flat;
            button.FlatAppearance.BorderColor = Color.White;
            button.FlatAppearance.BorderSize  = 1;
            bouttonMenuPressed = (Button)button;
            UnselectButtons();
        }
        public FormPOSinterface(List <Product> item)
        {
            InitializeComponent();
            formFunctionPointer += new functioncall(calculateSubTotal);
            ItemCart n = new ItemCart();

            n.userFunctionPointer = formFunctionPointer;
            items = item;
        }
        //static FormDashboard _obj;

        //public static FormDashboard Instance
        //{
        //    get
        //    {
        //        if (_obj == null)
        //        {
        //            _obj = new FormDashboard();
        //        }
        //        return _obj;
        //    }
        //}



        public FormPOSinterface()
        {
            InitializeComponent();
            formFunctionPointer += new functioncall(calculateSubTotal);
            ItemCart n = new ItemCart();

            n.userFunctionPointer = formFunctionPointer;
            //items = emp.loadProducts();
        }
Example #5
0
        void initializeMyControl()
        {
            this.wellPanelMain.tsmiLoadSVG.Visible = false;
            List <string> ltStrTrackType = Enum.GetNames(typeof(TypeTrack)).ToList();

            formFunctionPointer += new functioncall(wellPanelCallRefresh);
            this.wellPanelMain.userFunctionPointer     = formFunctionPointer;
            this.splitContainerSection.Panel1Collapsed = true;
            cPublicMethodForm.initialMapScale(tsbcbbVScale);
            tsbcbbVScale.SelectedIndex = 0;
        }
Example #6
0
 internal Expr ConvertToExpr(expr e, Dictionary <string, Expr> varInfo)
 {
     if (e is boolconst)
     {
         return(((boolconst)e).val ? smt.True : smt.False);
     }
     else if (e is charconst)
     {
         return(smt.MkNumeral(((charconst)e).val, smt.CharSort));
     }
     else if (e is ident)
     {
         ident i = (ident)e;
         if (!varInfo.ContainsKey(i.name))
         {
             throw new BekParseException(i.line, i.pos, string.Format("undefined '{0}'", i.name));
         }
         return(varInfo[i.name]);
     }
     else if (e is strconst)
     {
         return(smt.MkListFromString(((strconst)e).val, smt.CharSort));
     }
     else
     {
         functioncall f = e as functioncall; //must be != null
         if (f == null)
         {
             throw new BekException("Internal error, unexpected bek expression '{0}'");
         }
         try
         {
             Expr[] args = Array.ConvertAll(f.args.ToArray(), t => ConvertToExpr(t, varInfo));
             var    res  = smt.Library.ApplyFunction(f.id.name, args);
             return(res);
         }
         catch (BekParseException bek_error)
         {
             throw bek_error;
         }
         catch (Exception inner)
         {
             //add the line info
             throw new BekParseException(f.id.line, f.id.pos, inner);
         }
     }
 }
Example #7
0
        public void MenuBtnFormation_Click(object sender, EventArgs e)
        {
            Button button = ((Button)sender);

            //Add module1 to panel control
            //flowPanelMenu.Hide();
            ActiveUserControl = UCEducation_Formation.Instance;
            if (!panelMain.Controls.Contains(UCEducation_Formation.Instance))
            {
                panelMain.Controls.Add(UCEducation_Formation.Instance);
                UCEducation_Formation.Instance.Dock = DockStyle.Fill;
                UCEducation_Formation.Instance.BringToFront();

                ReceiverClickButton += new controlcall(clickButtonAgentMenu);
                UCEducation_Formation.Instance.MainWindowPointerMenuBtnAgent = ReceiverClickButton;

                ReceiverClickButtonFormation += new menuAgentClick(clickButtonFormationMenu);
                UC_Agent.Instance.PointerButtonMenuFormation = ReceiverClickButtonFormation;

                ReceiverFromFicheFormation += new functioncall(AgentSelectedInFormationCard);
                UCEducation_Formation.Instance.PointerFormation = ReceiverFromFicheFormation;



                ReceiverRefreshListeAgent += new refreshFicheAgent(refreshFormAgent);
                UCEducation_Formation.Instance.PointerRefreshFicheAgent = ReceiverRefreshListeAgent;


                ReceiverClickProvider += new menuProviderClick(MenuBtnProvider_Click);
                UCEducation_Formation.Instance.MainWindowPointerMenuBtnProvider = ReceiverClickProvider;
            }
            else
            {
                UCEducation_Formation.Instance.BringToFront();
            }

            button.BackColor = Color.FromArgb(67, 100, 214);
            button.FlatStyle = FlatStyle.Flat;
            button.FlatAppearance.BorderColor = Color.White;
            button.FlatAppearance.BorderSize  = 1;
            bouttonMenuPressed = (Button)button;
            UnselectButtons();
            // Add the control to the panel
        }
Example #8
0
        private void InitUserControls(IntegrationTestsRunner runner)
        {
            _home = new HomeControl(runner);
            formFunctionPointer      += new functioncall(RenameDB);
            editTablePointer         += new functioncall2(EditTable);
            _home.userFunctionPointer = formFunctionPointer;
            _home.tableEditPointer    = editTablePointer;
            //------------------------------------------------------------

            _renameDBControl     = new RenameDBControl(runner);
            renameDbNamePointer += new renamecall(HomePage);
            _renameDBControl.userSaveControl = renameDbNamePointer;
            //------------------------------------------------------------
            _tableControl = new TableControl(runner);
            tablePointer += new renamecall(HomePage);
            _tableControl.tablePointer = tablePointer;
            //------------------------------------------------------------
            _queryControl = new QueryControl(runner);
            queryPointer += new queryResultcall(ShowResult);
            _queryControl.queryPointer = queryPointer;
            //------------------------------------------------------------
            _resultControl = new ResultControl(runner);
        }
Example #9
0
        private void selectedTables()
        {
            try
            {
                //txtTable.Text = lbTables.SelectedItem.ToString();

                lbFields.Items.Clear();

                foreach (table item in actualProject.tables)
                {
                    if (!item.deleted && item.Name.Equals(lbTables.SelectedItem.ToString()))
                    {

                        propertyGrid1.SelectedObject = item;

                        cargarCampos();
                        //lbFields.Items.Clear();
                        //foreach (field itemx in item.fields)
                        //{
                        //    //lbFields.Items.Add(item);
                        //    ComponentFactory.Krypton.Toolkit.KryptonListItem kl = new ComponentFactory.Krypton.Toolkit.KryptonListItem();
                        //    kl.ShortText = itemx.Name;
                        //    kl.LongText = itemx.type.ToString();
                        //    //  kl.ShortText=item.TargetName;
                        //    lbFields.Items.Add(kl);
                        //}

                        klRelations.Items.Clear();
                        foreach (relation rel in item.relations)
                        {

                            ComponentFactory.Krypton.Toolkit.KryptonListItem kl = new ComponentFactory.Krypton.Toolkit.KryptonListItem();
                            kl.ShortText = rel.name;
                            //kl.LongText = rel.name.ToString();
                            //  kl.ShortText=item.TargetName;
                            klRelations.Items.Add(kl);
                        }
                    }

                }

                // create a user control to edit the table
                myWay.userControls.userControlEditTable uc = new myWay.userControls.userControlEditTable();
                uc.txtTable.Text = lbTables.SelectedItem.ToString();
                uc.oldName = lbTables.SelectedItem.ToString();
                formFunctionPointer += new functioncall(alterTable);
                uc.userFunctionPointer = formFunctionPointer;
                kp1.Controls.Clear();
                kp1.Controls.Add(uc);
                uc.txtTable.Focus();

            }
            catch (Exception)
            {

            }
        }
Example #10
0
        private void butNewTable_Click(object sender, EventArgs e)
        {
            // create a user control to edit the table
            myWay.userControls.userControlEditTable uc = new myWay.userControls.userControlEditTable();
            uc.txtTable.Text = "";
            uc.butModify.Text = "Insert";
            uc.oldName = "";
            formFunctionPointer += new functioncall(alterTable);
            uc.userFunctionPointer = formFunctionPointer;

            kp1.Controls.Clear();
            kp1.Controls.Add(uc);
            //kp1.Controls[0].Focus();
            uc.txtTable.Focus();
        }