private void CreateEditWindow(OpenEditWindowMessage message) { EditWindow win = new EditWindow(); win.Show(); Messenger.Default.Send(new AlarmEditingMessage(message.Alarm)); }
private void OpenEditWindow(object obj) { var editWindow = new EditWindow(); editWindow.Show(); editWindow.VM.LoadProperties(Model); }
private void Edit_Click(object sender, RoutedEventArgs e) { var item = MainDataGrid.SelectedItem as Bank_Card; EditWindow ew = new EditWindow(item); ew.Show(); }
private void ButtonEdit() { EditWindow editWindow = new EditWindow(); editWindow.DataContext = new EditViewModel(SelectedCd, Musicians, Languages, Distributors, Genres); editWindow.Show(); }
private void editBtn_Click(object sender, RoutedEventArgs e) { CustomPolitcian politcian = parliamentGrid.SelectedItem as CustomPolitcian; EditWindow edit = new EditWindow(politcian); edit.Show(); edit.Unloaded += Edit_Unloaded;; }
public void EditBook(object o) { EditWindow eb = new EditWindow(); this.Window.Hide(); eb.Show(); eb.ShowInTaskbar = false; eb.Activate(); }
/// <summary> /// ШАБЛОН Создание экземпляра окна Транхакция /// </summary> /// <typeparam name="T">Natural, Legal, VIP</typeparam> /// <param name="item"></param> private void EditWindow_Template <T>(T item) { EditWindow editWindow = new EditWindow(Bank, item); editWindow.Owner = this; this.IsEnabled = false; if (editWindow.ShowDialog() == true) { editWindow.Show(); editWindow.Activate(); } this.IsEnabled = true; }
public EditWindow ShowEditWindow(string file) { var winEdit = new EditWindow(); winEdit.ShowInTaskbar = true; if (file.Length > 0) { winEdit.txtPath.Text = file; winEdit.OpenFile(); } winEdit.Show(); return(winEdit); }
private void MouseUp(object sender, MouseButtonEventArgs e) { canvas.Children.Remove(_rect); canvas.Children.Remove(img); canvas.Children.Clear(); if (_rect.Height < 20 || _rect.Width < 20) { CloseWindow(); Tray.ShotNotification("Screenshot cannot loaded, very small"); return; } first = false; CloseWindow(); CroppedBitmap cb = new CroppedBitmap( (BitmapSource)img.Source, new Int32Rect((int)x, (int)y, (int)w, (int)h)); Image croppedImage = new Image(); croppedImage.Source = cb; if (instaScreen == 1) { ImageConverter.CopyToClipboard(croppedImage, Properties.Settings.Default.ImageFormat); } else { EditWindow editWindow = new EditWindow(croppedImage); editWindow.Show(); } string loadtodisk = ""; if (Properties.Settings.Default.LoadToDisk) { ImageConverter.SaveImageTo(Properties.Settings.Default.ImageFormat, Properties.Settings.Default.LoadImagePath + "Image-" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss") + ImageConverter.ImageFormat(Properties.Settings.Default.ImageFormat), croppedImage); loadtodisk = " and saved to disk"; } Tray.ShotNotification("Screenshot loaded" + loadtodisk); }
private void Button_edit2_Click(object sender, RoutedEventArgs e) { try { TreeViewItem items = TreeView.SelectedItem as TreeViewItem; string selit = items.Header.ToString(); foreach (var item in catalogsfromreserv) { if (selit == item.value) { if (item.keyWords[ListGroupNames.SelectedIndex].ListValues[ListKeyWords.SelectedIndex] != null) { editWindowC = new EditWindow(item.keyWords[ListGroupNames.SelectedIndex].ListValues[ListKeyWords.SelectedIndex]);//async await !!!!!!!!!!!!!!!!!!!!!!!!!!!!! editWindowC.Show(); this.IsEnabled = false; editWindowC.Closed += ClosedEditKey; } } } } catch { MessageBox.Show("Ви не вибрали елемент!"); } }
private void ListBoxCatalog_MouseDoubleClick(object sender, MouseButtonEventArgs e) { try { TreeViewItem items = TreeViewCatalog.SelectedItem as TreeViewItem; string selit = items.Header.ToString(); foreach (var item in catalogsfromreserv) { if (selit == item.value) { if (item.Info[ListBoxCatalog.SelectedIndex].ToString() != null) { editWindowC = new EditWindow(item.Info[ListBoxCatalog.SelectedIndex]);//async await !!!!!!!!!!!!!!!!!!!!!!!!!!!!! editWindowC.Show(); this.IsEnabled = false; editWindowC.Closed += ClosedEdit; } } } } catch { MessageBox.Show("Ви не вибрали елемент!"); } }
protected void OnEditActionActivated(object sender, EventArgs e) { EditWindow ew = new EditWindow(this.mySqlConnection); ew.Show(); }
protected void OnEditActionActivated(object sender, EventArgs e) { EditWindow ew = new EditWindow (this.mySqlConnection); ew.Show (); }
private void AddCard_Click(object sender, RoutedEventArgs e) { EditWindow editwwin = new EditWindow(new Bank_Card()); editwwin.Show(); }
private void ExecuteShowEditDialog(object sender) { var subWindow = new EditWindow(EditNodeCommand, Selected); subWindow.Show(); }
public void ShowClip() { ClipWindow.Select(); ClipWindow.Show(); }