private void ComboBoxItem_Selected(object sender, RoutedEventArgs e) { Session.SelectedProfileIndex = cbxProfileSelector.SelectedIndex; Session.Save(); ProfileActionWindow profileActionWindow = new ProfileActionWindow(); profileActionWindow.CommitProfile(); profileActionWindow.ShowDialog(); }
private void Button_Click(object sender, RoutedEventArgs e) { Session.SelectedProfileIndex = cbxProfileSelector.SelectedIndex; Session.Save(); ProfileActionWindow profileActionWindow = new ProfileActionWindow(); profileActionWindow.SyncProfile(); profileActionWindow.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wdwProfileAction = ((ZipVersionControl.ProfileActionWindow)(target)); return; case 2: this.pgbProgress = ((System.Windows.Controls.ProgressBar)(target)); return; case 3: this.tblStatus = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }