private void MenuItem_Click(object sender, RoutedEventArgs e) { var window = new ProfileWindow(); window.ShowDialog(); RefreshProfiles(); }
private void EditClick(object sender, RoutedEventArgs e) { var profile = (Profile)Profiles.SelectedItem; var window = new ProfileWindow(profile.Id, Enums.EditMode.Edit); window.ShowDialog(); RefreshProfiles(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((AvitoXml.Wpf.Windows.ProfileWindow)(target)); return; case 2: this.Name = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.Manager = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.Adress = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.Phone = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.Prefix = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.OkBtn = ((System.Windows.Controls.Button)(target)); #line 63 "..\..\..\..\Windows\ProfileWindow.xaml" this.OkBtn.Click += new System.Windows.RoutedEventHandler(this.OkBtn_Click); #line default #line hidden return; } this._contentLoaded = true; }