public UpdateClientModel(ClientMonitoringModel model) { _admin = new AdminConnector(model.ConnectionAddress); _updateDirectory = Path.Combine(Path.GetTempPath(), "HSMClientUpdate"); _currentVersion = model.CurrentVersion; Directory.CreateDirectory(_updateDirectory); _latestVersion = model.LastAvailableVersion; }
private void WinLogin_UserPropertyChanged(object sender, EventArgs e) { User_client = winLogin.UserPlayer; switch (User_client.ID_status) { case 1: RightRemoveStatus = false; Application.Current.MainWindow.Height = 625; Application.Current.MainWindow.Width = 900; WidthA = 0; WidthS = 0; break; case 2: RightRemoveStatus = true; Application.Current.MainWindow.Height = 625; Application.Current.MainWindow.Width = 1150; adminConnector = new AdminConnector(); WidthA = 250; WidthS = 0; break; case 3: RightRemoveStatus = false; Application.Current.MainWindow.Height = 625; Application.Current.MainWindow.Width = 1150; WidthA = 0; WidthS = 250; superConnector = new SuperadminConnector(); CompanyForComboBox = superConnector.GetMusicCompany(); break; } }