本文整理汇总了C#中Version.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# Version.ShowDialog方法的具体用法?C# Version.ShowDialog怎么用?C# Version.ShowDialog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Version
的用法示例。
在下文中一共展示了Version.ShowDialog方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PICConnect
PICConnect picConnect = new PICConnect(); //Verbindungsklasse mit PIC
#endregion Fields
#region Constructors
public FormMain(string args)
{
// sprache übersteuern
// wenn auto dann bestriebssystem einstellungen
switch (Properties.Settings.Default.language)
{
case "english":
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
break;
case "german":
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
break;
case "french":
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr");
break;
}
InitializeComponent();
//com Ports zuweisen zu pull-down
string [] aviableComPorts = ComPorts.readPorts();
foreach (string aviableComPort in aviableComPorts)
{
comPortToolStripComboBox.Items.Add(aviableComPort);
}
// sprachtexte laden
help = new ResourceManager("UAVP.UAVPSet.Resources.hilfe", this.GetType().Assembly);
labels = new ResourceManager("UAVP.UAVPSet.Resources.language", this.GetType().Assembly);
errorLabels = new ResourceManager("UAVP.UAVPSet.Resources.error", this.GetType().Assembly);
//Applikationspfad
pfad = Application.StartupPath;
// Comport aus Settings einstellen
comPortToolStripComboBox.Text = Properties.Settings.Default.comPort;
// version einstellen
if (Properties.Settings.Default.version == "")
{
Version versionDialog = new Version();
versionDialog.ShowDialog();
}
versionToolStripComboBox.Text = Properties.Settings.Default.version;
// Logdatei neu erstellen
Log.newLog(this);
//Layout aus Einstellungen laden
this.Height = Properties.Settings.Default.mainFormHeight;
this.Width = Properties.Settings.Default.mainFormWidth;
splitContainer1.SplitterDistance = Properties.Settings.Default.listViewWidth;
LoadSettings(args);
ChangeVersion();
}
示例2: versionToolStripMenuItem_Click
private void versionToolStripMenuItem_Click(object sender, EventArgs e)
{
Version ve = new Version();
ve.ShowDialog(this);
}
示例3: helpToolStripMenuItem_Click
private void helpToolStripMenuItem_Click(object sender, EventArgs e)
{
Version v = new Version();
v.ShowDialog();
}