Exemplo n.º 1
0
        private void InitialCloudData()
        {
            this.Opacity = 0;
            this.ShowInTaskbar = false;
            Param.MainPanel = this.pnlMain;

            FmInitialData fm = new FmInitialData();
            var result = fm.ShowDialog(this);
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                this.Text = string.Format("Power POS - ร้าน {0} ({1})", Param.ShopName, Param.ComputerName);
                menuStrip1.Enabled = true;
                toolStrip1.Enabled = true;
                this.Opacity = 100;
                this.ShowInTaskbar = true;
                Param.InitialFinished = true;

                Util.ShowScreen(Param.Screen.Sell);
                Param.SelectedScreen = (int)Param.Screen.Sell;
            }
            else
            {
                this.Dispose();
            }
        }
Exemplo n.º 2
0
        private void InitialCloudData()
        {
            this.Opacity       = 0;
            this.ShowInTaskbar = false;
            Param.MainPanel    = this.pnlMain;

            FmInitialData fm     = new FmInitialData();
            var           result = fm.ShowDialog(this);

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                this.Text             = string.Format("Power POS - ร้าน {0} ({1})", Param.ShopName, Param.ComputerName);
                menuStrip1.Enabled    = true;
                toolStrip1.Enabled    = true;
                this.Opacity          = 100;
                this.ShowInTaskbar    = true;
                Param.InitialFinished = true;

                Util.ShowScreen(Param.Screen.Sell);
                Param.SelectedScreen = (int)Param.Screen.Sell;
            }
            else
            {
                this.Dispose();
            }
        }