private void doConnectCmd() { DataSource si = SourceInfoModel.GetSourceInfo(); VideoInfoManager.Instance.CheckServerValid(si); VideoInfoManager.Instance.UpdateSource(si); ConnectSource = SourceInfoModel.GetSourceInfo(); OnConnected(); }
private void thisPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { switch (e.PropertyName) { case nameof(SelectedSource): if (!_srcReloading) { SourceInfoModel.SetToUpdate(SelectedSource); } break; } }
private void doCreateNewCmd() { SourceInfoModel.CreateNew(); SourceItems.View.MoveCurrentTo(null); }