本文整理汇总了C#中MessageBoxForm.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# MessageBoxForm.Dispose方法的具体用法?C# MessageBoxForm.Dispose怎么用?C# MessageBoxForm.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MessageBoxForm
的用法示例。
在下文中一共展示了MessageBoxForm.Dispose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VixenApplication
public VixenApplication()
{
InitializeComponent();
labelVersion.Font = new Font("Segoe UI", 14);
//Get rid of the ugly grip that we dont want to show anyway.
//Workaround for a MS bug
statusStrip.Padding = new Padding(statusStrip.Padding.Left,
statusStrip.Padding.Top, statusStrip.Padding.Left, statusStrip.Padding.Bottom);
statusStrip.Font = SystemFonts.StatusFont;
Icon = Resources.Icon_Vixen3;
ForeColor = ThemeColorTable.ForeColor;
BackColor = ThemeColorTable.BackgroundColor;
ThemeUpdateControls.UpdateControls(this);
statusStrip.BackColor = ThemeColorTable.BackgroundColor;
statusStrip.ForeColor = ThemeColorTable.ForeColor;
toolStripStatusLabel1.ForeColor = ThemeColorTable.ForeColor;
toolStripStatusLabelExecutionLight.ForeColor = ThemeColorTable.ForeColor;
toolStripStatusLabelExecutionState.ForeColor = ThemeColorTable.ForeColor;
toolStripStatusLabel_memory.ForeColor = ThemeColorTable.ForeColor;
contextMenuStripRecent.Renderer = new ThemeToolStripRenderer();
string[] args = Environment.GetCommandLineArgs();
foreach (string arg in args) {
_ProcessArg(arg);
}
StartJITProfiler();
if (_rootDataDirectory == null)
{
ProcessProfiles();
}
_applicationData = new VixenApplicationData(_rootDataDirectory);
_rootDataDirectory = _applicationData.DataFileDirectory;
if (!CreateLockFile())
{
var form = new MessageBoxForm("Profile is already in use or unable to the lock the profile.","Error",MessageBoxButtons.OK, SystemIcons.Error);
form.ShowDialog();
form.Dispose();
Environment.Exit(0);
}
stopping = false;
PopulateVersionStrings();
AppCommands = new AppCommand(this);
Execution.ExecutionStateChanged += executionStateChangedHandler;
VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);
InitStats();
// other modules look for and create it this way...
AppCommand toolsMenu = AppCommands.Find("Tools");
if (toolsMenu == null)
{
toolsMenu = new AppCommand("Tools", "Tools");
AppCommands.Add(toolsMenu);
}
var myMenu = new AppCommand("Options", "Options...");
myMenu.Click += optionsToolStripMenuItem_Click;
toolsMenu.Add(myMenu);
toolStripItemClearSequences.Click += (mySender, myE) => ClearRecentSequencesList();
}