コード例 #1
0
        private void _spvm_CommandOperation(object sender, MVVMBase.CommandArgs args)
        {
            switch (args.Parameter)
            {
            case "Color":
                YT_ColorPicker cp = new YT_ColorPicker();
                cp.ShowDialog(App.Current.MainWindow, Properties.Settings.Default.AreaFontColor);
                Properties.Settings.Default.AreaFontColor = ColorNumConv.ToColorD(cp.Argb);
                break;

            case "Free":
                XmlDocService.Instence.CleanupFluxData();
                _spvm.UpdateCache();
                PopupMessageServices.Instence.ShowContent("已清空全部缓存");
                break;

            case "Reset":
                _resd.Question   = "确认清除所有数据?\n(包括自定义设置)";
                _resd.YesAction += _resd_YesAction;
                _resd.ShowDialog(App.Current.MainWindow);
                break;
            }
        }
コード例 #2
0
        private void _spvm_CommandOperation(object sender, MVVMBase.CommandArgs args)
        {
            switch (args.Command)
            {
            case "Operation":
                switch (args.Parameter)
                {
                case "IPGWSubmit":
                    if (IPGWA.IsEnabled)
                    {
                        TestIpgwValue();
                    }
                    else
                    {
                        EnableIpgwInput();
                    }
                    break;
                }
                break;

            default: break;
            }
        }
コード例 #3
0
 private void _mpvm_CommandOperation(object sender, MVVMBase.CommandArgs args)
 {
 }