Exemple #1
0
        public Counter()
        {
            InitializeComponent();

            iFt = new iFunction();
            con = new MySqlConnection(iFt.dbconnect);

            Sum           = 0;
            timer.Enabled = true;
        }
Exemple #2
0
        public EditItem(object SelectedItem, int Page)
        {
            InitializeComponent();

            iFt = new iFunction();
            con = new MySqlConnection(iFt.dbconnect);

            this.Item = SelectedItem;
            this.Page = Page;

            InitValue();
        }
Exemple #3
0
        public History()
        {
            InitializeComponent();

            iFt = new iFunction();
            con = new MySqlConnection(iFt.dbconnect);

            SumBuy  = 0;
            SumSell = 0;

            timer1.Enabled = true;
        }
Exemple #4
0
        public Stock()
        {
            InitializeComponent();

            iFt = new iFunction();
            con = new MySqlConnection(iFt.dbconnect);

            Panel[] pnl = { PanelLen, PanelFrame, PanelContact };
            foreach (Panel p in pnl)
            {
                p.Visible = false;
            }
        }
Exemple #5
0
        public AddItem()
        {
            InitializeComponent();

            iFt = new iFunction();
            con = new MySqlConnection(iFt.dbconnect);

            Panel[]       pnl   = { PanelLen, PanelFrame, PanelContact };
            RadioButton[] rdbtn = { RDBTNLen, RDBTNFrame, RDBTNContact };

            foreach (Panel p in pnl)
            {
                p.Visible = false;
            }

            rdbtn[0].Select();
            pnl[0].Visible = true;
        }