Exemple #1
0
        protected virtual void mc_MenuSetting(object sender, ExecutedRoutedEventArgs e)
        {
            var dlg = new SetContextMenuWindow(Owner, Settings.Instance.MenuSet);

            if (dlg.ShowDialog() == true)
            {
                Settings.Instance.MenuSet = dlg.info.DeepClone();
                Settings.SaveToXmlFile();//メニュー設定の保存
                SettingWindow.UpdatesInfo("右クリックメニューの変更");
                mainWindow.RefreshMenu();
            }
        }
Exemple #2
0
        protected virtual void mc_MenuSetting(object sender, ExecutedRoutedEventArgs e)
        {
            var dlg = new SetContextMenuWindow();

            dlg.Owner = CommonUtil.GetTopWindow(Owner);
            dlg.info  = Settings.Instance.MenuSet.Clone();

            if (dlg.ShowDialog() == true)
            {
                Settings.Instance.MenuSet = dlg.info.Clone();
                Settings.SaveToXmlFile();//メニュー設定の保存
                mainWindow.RefreshMenu();
            }
        }