Exemplo n.º 1
0
        private void CreateEditWindow(OpenEditWindowMessage message)
        {
            EditWindow win = new EditWindow();

            win.Show();
            Messenger.Default.Send(new AlarmEditingMessage(message.Alarm));
        }
Exemplo n.º 2
0
        private void OpenEditWindow(object obj)
        {
            var editWindow = new EditWindow();

            editWindow.Show();
            editWindow.VM.LoadProperties(Model);
        }
Exemplo n.º 3
0
        private void Edit_Click(object sender, RoutedEventArgs e)
        {
            var        item = MainDataGrid.SelectedItem as Bank_Card;
            EditWindow ew   = new EditWindow(item);

            ew.Show();
        }
Exemplo n.º 4
0
        private void ButtonEdit()
        {
            EditWindow editWindow = new EditWindow();

            editWindow.DataContext = new EditViewModel(SelectedCd, Musicians, Languages, Distributors, Genres);
            editWindow.Show();
        }
Exemplo n.º 5
0
        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;;
        }
Exemplo n.º 6
0
        public void EditBook(object o)
        {
            EditWindow eb = new EditWindow();

            this.Window.Hide();
            eb.Show();
            eb.ShowInTaskbar = false;
            eb.Activate();
        }
Exemplo n.º 7
0
        /// <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;
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
        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);
        }
Exemplo n.º 10
0
 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("Ви не вибрали елемент!"); }
 }
Exemplo n.º 11
0
 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("Ви не вибрали елемент!"); }
 }
Exemplo n.º 12
0
    protected void OnEditActionActivated(object sender, EventArgs e)
    {
        EditWindow ew = new EditWindow(this.mySqlConnection);

        ew.Show();
    }
Exemplo n.º 13
0
 protected void OnEditActionActivated(object sender, EventArgs e)
 {
     EditWindow ew = new EditWindow (this.mySqlConnection);
     ew.Show ();
 }
Exemplo n.º 14
0
        private void AddCard_Click(object sender, RoutedEventArgs e)
        {
            EditWindow editwwin = new EditWindow(new Bank_Card());

            editwwin.Show();
        }
Exemplo n.º 15
0
        private void ExecuteShowEditDialog(object sender)
        {
            var subWindow = new EditWindow(EditNodeCommand, Selected);

            subWindow.Show();
        }
Exemplo n.º 16
0
 public void ShowClip()
 {
     ClipWindow.Select();
     ClipWindow.Show();
 }