Пример #1
0
 /// <summary>
 /// 編集用ウインドウ起動コマンド
 /// </summary>
 /// <param name="param"></param>
 private void EditWindowOpenCommandHandler(object param)
 {
     if (editWindow == null)
     {
         editWindow = new EditWindow();
     }
     editWindow.ShowDialog();
 }
Пример #2
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Escape)
            {
                ExitWindow exit = new ExitWindow();
                exit.Show();
                exit.Owner = this;
            }

            if (e.Key == Key.F1 && URLGroup.isExists(url => url.isActive))
            {
                setEnableToolBar(false);

                URL active = URLGroup.findURL(url => url.isActive);

                EditWindow edit = new EditWindow();
                edit.urlName.Text = active.Name;
                edit.urlHref.Text = active.Href;

                edit.Show();
                edit.Owner = this;
            }
        }
Пример #3
0
 /// <summary>
 /// 編集用ウインドウ起動コマンド
 /// </summary>
 /// <param name="param"></param>
 private void EditWindowOpenCommandHandler(object param)
 {
     if (editWindow == null)
     {
         editWindow = new EditWindow();
     }
     editWindow.ShowDialog();
 }