本文整理汇总了C#中Import.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# Import.ShowDialog方法的具体用法?C# Import.ShowDialog怎么用?C# Import.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Import
的用法示例。
在下文中一共展示了Import.ShowDialog方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: importujZSieciToolStripMenuItem_Click
private void importujZSieciToolStripMenuItem_Click(object sender, System.EventArgs e)
{
if (MessageBox.Show("Import protokołu spowoduje nadpisanie obecnego protokołu. Czy kontynuować?", "Import", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
Import imp = new Import(this.savePath, this.licensePath, this, this.header);
imp.ShowDialog();
this.wait.setWaitPanel("Trwa wczytywanie protokołu", "Proszę czekać");
this.wait.setVisible(true);
if (this.imported)
{
int stepSave = this.isSave();
if (stepSave != -1)
{
this.save.Load(this.savePath);
this.protocolHeader.Controls.Clear();
this.getHeader();
this.Form1panel.Controls.Clear();
this.range.Clear();
this.getCalculator();
this.protocolForm1.Enabled = true;
this.protocolForm2.Enabled = false;
this.protocolSummation.Enabled = false;
this.protocolCommittee.Enabled = false;
this.signProtocol.Enabled = false;
this.Form1panel.Visible = true;
this.Form2panel.Visible = false;
this.committeePanel.Visible = false;
this.SummationPanel.Visible = false;
this.signPanel.Visible = false;
this.protocolForm1.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.protocolForm2.BackColor = System.Drawing.SystemColors.Control;
this.protocolSummation.BackColor = System.Drawing.SystemColors.Control;
this.protocolCommittee.BackColor = System.Drawing.SystemColors.Control;
this.signProtocol.BackColor = System.Drawing.SystemColors.Control;
this.buttonNext.Visible = false;
if (stepSave != 1)
{
this.Form2panel.Controls.Clear();
if (stepSave != 2)
{
this.SummationPanel.Controls.Clear();
this.raportPanel.Controls.Clear();
this.raportPanel.Visible = false;
if (stepSave != 3)
{
DataTable dtCommittee = new DataTable();
this.personList.DataSource = dtCommittee;
this.personList.Columns.Clear();
if (this.personList.Columns["remove"] != null)
{
this.personList.Columns.Remove("remove");
}
if (this.personList.Columns["action3"] != null)
{
this.personList.Columns.Remove("action3");
}
this.personList.Refresh();
}
}
}
}
this.buttonNext.Text = "Dalej";
this.buttonNext.Click -= new System.EventHandler(this.protocolForm2_Click);
this.buttonNext.Click -= new System.EventHandler(this.protocolSummation_Click);
this.buttonNext.Click -= new System.EventHandler(this.committee_Click);
this.buttonNext.Click -= new System.EventHandler(this.committeeValid_Click);
this.buttonNext.Click -= new System.EventHandler(this.signProtocol_Click);
this.buttonNext.Click += new System.EventHandler(this.protocolForm2_Click);
this.bottomPanel.Location = new System.Drawing.Point(this.Form1panel.Location.X, this.Form1panel.Location.Y + this.Form1panel.Size.Height);
this.bottomPanel.Visible = true;
this.buttonNext.Visible = true;
this.errorProvider1.clearErrors();
}
this.imported = false;
this.wait.setVisible(false);
}
}