Exemplo n.º 1
0
        public WinCustomer()
        {
            InitializeComponent();

            btnExit.Click += delegate
            {
                ClassMessageBox.MessageBoxQuestionExit();
            };
        }
        public WinDirectorate()
        {
            InitializeComponent();

            btnExit.Click += delegate
            {
                ClassMessageBox.MessageBoxQuestionExit();
            };
        }
        public WinAuthorization()
        {
            InitializeComponent();

            btnExit.Click += delegate
            {
                ClassMessageBox.MessageBoxQuestionExit();
            };

            btnReg.Click += delegate
            {
                WinRegistration winRegistration = new WinRegistration();
                winRegistration.Show();
                this.Close();
            };
        }
Exemplo n.º 4
0
        public WinStorekeeper()
        {
            InitializeComponent();

            btnFabric.Click += delegate
            {
                WinFabric winFabric = new WinFabric();
                winFabric.Show();
                this.Close();
            };

            btnExit.Click += delegate
            {
                ClassMessageBox.MessageBoxQuestionExit();
            };
        }
        public WinFabric()
        {
            InitializeComponent();

            classDataGrid = new ClassDataGrid(dgFabric);
            classDataGrid.LoaderData("SELECT * FROM dbo.[Fabric]");

            btnExit.Click += delegate
            {
                ClassMessageBox.MessageBoxQuestionExit();
            };

            btnRefresh.Click += delegate
            {
                classDataGrid.LoaderData("SELECT * FROM dbo.[Fabric]");
            };
        }