コード例 #1
0
        public ProductView()
        {
            InitializeComponent();

            dG = new DG(dgProduct, snack, snackMessage);

            sB = new SB(snack, snackMessage);

            dataBaseQuery = new DataBaseQuery(snack, snackMessage);

            comboBoxAddStrength = new CB(cbStrength, snack, snackMessage);

            comboBoxEditStrength = new CB(cbEditStrength, snack, snackMessage);

            comboBoxAddStrength.Loader("Strength", "NameStrength");

            comboBoxEditStrength.Loader("Strength", "NameStrength");

            this.Loaded += delegate
            {
                dG.Loader("SELECT * FROM dbo.[ProductStrength]");
            };

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }
コード例 #2
0
        public DirectorEmployeeView()
        {
            InitializeComponent();

            dG = new DG(dgEmployee, snack, snackMessage);

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }
コード例 #3
0
        private void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            dG.Loader("SELECT * FROM dbo.[EmployeeUser]");

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };

            comboBoxAddEmployee.Loader("User", "Login");

            comboBoxEditEmployee.Loader("User", "Login");
        }
コード例 #4
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            dG.Loader("SELECT * FROM dbo.[UserRole]");

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };

            myListBox.Loader("Role", "NameRole");

            comboBoxAddRole.Loader("Role", "NameRole");

            comboBoxEditRole.Loader("Role", "NameRole");
        }
コード例 #5
0
        public DirectorRecipientView()
        {
            InitializeComponent();

            dG = new DG(dgRecipient, snack, snackMessage);

            this.Loaded += delegate {
                dG.Loader("SELECT Id, FirstName + N' ' + LastName as Recipient," +
                          " Address, PhoneNumber, Email FROM dbo.Recipient");
            };

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }
コード例 #6
0
        public DirectorSupplierView()
        {
            InitializeComponent();

            dG = new DG(dgSupplier, snack, snackMessage);

            this.Loaded += delegate
            {
                dG.Loader("SELECT * FROM dbo.[Supplier]");
            };

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }
コード例 #7
0
        public DirectorProductView()
        {
            InitializeComponent();

            dG = new DG(dgProduct, snack, snackMessage);

            this.Loaded += delegate
            {
                dG.Loader("SELECT * FROM dbo.[ProductStrength]");
            };

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }
コード例 #8
0
        public SupplierView()
        {
            InitializeComponent();

            dG = new DG(dgSupplier, snack, snackMessage);

            sB = new SB(snack, snackMessage);

            dataBaseQuery = new DataBaseQuery(snack, snackMessage);

            this.Loaded += delegate
            {
                dG.Loader("SELECT * FROM dbo.[Supplier]");
            };

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }
コード例 #9
0
        public ClientView()
        {
            InitializeComponent();

            dG = new DG(dgClient, snack, snackMessage);

            sB = new SB(snack, snackMessage);

            dataBaseQuery = new DataBaseQuery(snack, snackMessage);

            this.Loaded += delegate
            {
                dG.Loader("SELECT Id, FirstName + N' ' + LastName as Client," +
                          " Address, PhoneNumber, Email FROM dbo.Client");
            };

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }
コード例 #10
0
        public OrderView()
        {
            InitializeComponent();

            dG = new DG(dgOrder, snack, snackMessage);

            sB = new SB(snack, snackMessage);

            lb = new MyListBox(lbSortingCenter, snack, snackMessage);

            comboBoxEmployee = new CB(cbEmployee, snack, snackMessage);

            comboBoxClient = new CB(cbClient, snack, snackMessage);

            comboBoxRecipient = new CB(cbRecipient, snack, snackMessage);

            comboBoxSupplier = new CB(cbSupplier, snack, snackMessage);

            comboBoxArticle = new CB(cbArticle, snack, snackMessage);

            comboBoxSortingCenter = new CB(cbSortingCenter, snack, snackMessage);

            comboBoxNameOrderTiming = new CB(cbNameOrderTiming, snack, snackMessage);

            comboBoxEditEmployee = new CB(cbEditEmployee, snack, snackMessage);

            comboBoxEditClient = new CB(cbEditClient, snack, snackMessage);

            comboBoxEditRecipient = new CB(cbEditRecipient, snack, snackMessage);

            comboBoxEditSupplier = new CB(cbEditSupplier, snack, snackMessage);

            comboBoxEditArticle = new CB(cbEditArticle, snack, snackMessage);

            comboBoxEditSortingCenter = new CB(cbEditSortingCenter, snack, snackMessage);

            comboBoxEditNameOrderTiming = new CB(cbEditNameOrderTiming, snack, snackMessage);

            dataBaseQuery = new DataBaseQuery(snack, snackMessage);

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };
        }