/// <summary> /// 編集用ウインドウ起動コマンド /// </summary> /// <param name="param"></param> private void EditWindowOpenCommandHandler(object param) { if (editWindow == null) { editWindow = new EditWindow(); } editWindow.ShowDialog(); }
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; } }