public DeviceNetworksWindow(NetworkBaseEntities db)
 {
     InitializeComponent();
     entities = db;
     insertButton.IsEnabled = true;
     updateButton.IsEnabled = false;
 }
Пример #2
0
 public DevicesWin(NetworkBaseEntities db)
 {
     InitializeComponent();
     Button.IsEnabled       = true;
     updateButton.IsEnabled = false;
     entities = db;
 }
Пример #3
0
        public UsersWindow(NetworkBaseEntities db, Users users)
        {
            InitializeComponent();

            entities = db;
            uUser    = users;
            insertButton.IsEnabled = false;
            updateButton.IsEnabled = true;
            userID.IsReadOnly      = true;
            ShowData();
        }
        public DeviceNetworksWindow(NetworkBaseEntities db, DeviceNetworks deviceNetworks)
        {
            InitializeComponent();

            uNetwork = deviceNetworks;
            entities = db;
            insertButton.IsEnabled = false;
            updateButton.IsEnabled = true;
            numberBox.IsReadOnly   = true;
            ShowData();
        }
Пример #5
0
        public NetworksWindow(NetworkBaseEntities db, Networks network)
        {
            InitializeComponent();

            uNetwork = network;
            entities = db;
            insertButton.IsEnabled = false;
            updateButton.IsEnabled = true;
            networkID.IsReadOnly   = true;
            ShowData();
        }
Пример #6
0
        public DevicesWin(NetworkBaseEntities db, Devices device)
        {
            InitializeComponent();

            entities               = db;
            udevice                = device;
            Button.IsEnabled       = false;
            updateButton.IsEnabled = true;
            deviceID.IsReadOnly    = true;
            ShowData();
        }
Пример #7
0
        public DepartmentWindow(NetworkBaseEntities db, Departments department)
        {
            InitializeComponent();

            entities                = db;
            udepartment             = department;
            InsertButton.IsEnabled  = false;
            updateButton.IsEnabled  = true;
            departmentID.IsReadOnly = true;
            ShowData();
        }
Пример #8
0
 public MainWindow()
 {
     InitializeComponent();
     //OpenLogin();
     db                     = new NetworkBaseEntities();
     selectedTable          = Table.device;
     shownTable             = Table.nope;
     insertButtn.IsEnabled  = false;
     updateButton.IsEnabled = false;
     deleteButton.IsEnabled = false;
 }