当前位置: 首页>>代码示例>>C#>>正文


C# Import.ShowDialog方法代码示例

本文整理汇总了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);
     }
 }
开发者ID:nicholaspaun,项目名称:Kalkulator1,代码行数:77,代码来源:ProtocolForm.cs


注:本文中的Import.ShowDialog方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。