本文整理汇总了C#中Options.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# Options.ShowDialog方法的具体用法?C# Options.ShowDialog怎么用?C# Options.ShowDialog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options
的用法示例。
在下文中一共展示了Options.ShowDialog方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Options_Executed
private void Options_Executed(object sender, ExecutedRoutedEventArgs e)
{
var options = new Options();
options.ShowDialog();
}
示例2: OptionsToolStripMenuItem_Click
private void OptionsToolStripMenuItem_Click(object sender, EventArgs e)
{
Options testDialog = new Options();
testDialog.ShowDialog(this);
testDialog.Dispose();
}
示例3: Execute
/// <summary>
/// Triggers the action.
/// </summary>
/// <param name="pName"></param>
protected override void Execute(string pName)
{
Options options = new Options(ObjectFactory.Container.GetInstance<iPluginStorage>());
options.ShowDialog(MainFrm.getMainApplication());
}
示例4: ShowApplicationOptions
public void ShowApplicationOptions()
{
Options frm = new Options(this, this.noteCrtl);
frm.ShowDialog();
}
示例5: optionsToolStripMenuItem_Click
//public TimeWindow TimeWindow;
private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
{
Options o = new Options();
o.HydrometUseWebCache = HydrometInfoUtility.WebCaching;
o.HydrometAutoUpdate = HydrometInfoUtility.AutoUpdate;
o.HydrometIncludeFlaggedData = HydrometInstantSeries.KeepFlaggedData;
o.HydrometWebOnly = HydrometInfoUtility.WebOnly;
o.DecodesOutputDirectory = DB.Settings.ReadString("DecodesOutputDirectory","");
o.UsgsDailyAutoUpdate = Usgs.Utility.AutoUpdate;
o.MultipleYAxis = DB.Settings.ReadBoolean("MultipleYAxis", false);
// o.ScenarioNames = DB.Scenario;
o.ModsimDisplayFlowInCfs = Modsim.ModsimSeries.DisplayFlowInCfs;
#if !PISCES_OPEN
o.ExcelAutoUpdate = Reclamation.TimeSeries.Excel.SpreadsheetGearSeries.AutoUpdate;
#endif
o.AutoRefresh = DB.AutoRefresh;
o.HydrometVariableResolver = DB.Settings.ReadBoolean("HydrometVariableResolver", false);
o.VerboseLogging = DB.Settings.ReadBoolean("VerboseLogging", false);
if (o.ShowDialog() == DialogResult.OK)
{
HydrometInfoUtility.WebCaching = o.HydrometUseWebCache;
HydrometInfoUtility.AutoUpdate = o.HydrometAutoUpdate;
HydrometInstantSeries.KeepFlaggedData = o.HydrometIncludeFlaggedData;
HydrometInfoUtility.WebOnly = o.HydrometWebOnly;
DB.Settings.Set("DecodesOutputDirectory", o.DecodesOutputDirectory);
DB.Settings.Set("MultipleYAxis", o.MultipleYAxis);
DB.Settings.Set("HydrometVariableResolver", o.HydrometVariableResolver);
DB.Settings.Set("VerboseLogging", o.VerboseLogging);
if( o.VerboseLogging )
Logger.EnableLogger(true);
Usgs.Utility.AutoUpdate = o.UsgsDailyAutoUpdate;
Modsim.ModsimSeries.DisplayFlowInCfs = o.ModsimDisplayFlowInCfs;
#if !PISCES_OPEN
Reclamation.TimeSeries.Excel.SpreadsheetGearSeries.AutoUpdate = o.ExcelAutoUpdate;
#endif
DB.AutoRefresh = o.AutoRefresh;
SaveSettingsToDatabase();
// DB.Scenario = o.ScenarioNames;
}
Enabling();
}