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


C# frmMain.Show方法代码示例

本文整理汇总了C#中frmMain.Show方法的典型用法代码示例。如果您正苦于以下问题:C# frmMain.Show方法的具体用法?C# frmMain.Show怎么用?C# frmMain.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在frmMain的用法示例。


在下文中一共展示了frmMain.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Main

 public static void Main(string[] args)
 {
     Application.Init ();
     frmMain win = new frmMain ();
     win.Show ();
     Application.Run ();
 }
开发者ID:ultraviolet-1986,项目名称:LinuxDeletionUtility,代码行数:7,代码来源:Program.cs

示例2: frmFindAlumno_FormClosing

 private void frmFindAlumno_FormClosing( object sender, FormClosingEventArgs e )
 {
     if( ! this._closeInProcesses )
     {
         frmMain main = new frmMain( this._data );
         main.Show();
     }
 }
开发者ID:SIDET2015,项目名称:LawraDesktop,代码行数:8,代码来源:frmFindAlumno.cs

示例3: frmInitialMessage_FormClosing

 private void frmInitialMessage_FormClosing( object sender, FormClosingEventArgs e )
 {
     if ( ! this._isNext )
     {
         frmMain main = new frmMain( this._data );
         main.Show();
     }
 }
开发者ID:AlejoVM,项目名称:LawraDesktop,代码行数:8,代码来源:frmInitialMessage.cs

示例4: frmSearchStudents_FormClosing

 private void frmSearchStudents_FormClosing( object sender, FormClosingEventArgs e )
 {
     if ( ! this._openFicha )
     {
         frmMain main = new frmMain( this._data );
         main.Show();
     }
 }
开发者ID:SIDET2015,项目名称:LawraDesktop,代码行数:8,代码来源:frmSearchStudents.cs

示例5: btnLogin_Click

        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            if (txtUserID.Text.Trim().Length == 0)
            {
                MessageBox.Show("Please enter your user id", "Invalid Input", MessageBoxButton.OK,
                    MessageBoxImage.Exclamation);
                return;
            }

            if (txtPassword.Password.Trim().Length == 0)
            {
                MessageBox.Show("Please enter your password!", "Invalid Input", MessageBoxButton.OK,
                    MessageBoxImage.Exclamation);
                return;
            }

            if (String.Compare(txtSvAddr.Text.Trim(), ConfigHelper.GetEndpointAddress(), true) != 0)
            {
                ConfigHelper.SaveEndpointAddress(txtSvAddr.Text.Trim());
            }

            AdminHelper client = new AdminHelper();
            try
            {
                Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
                KeyValueConfigurationCollection settings = config.AppSettings.Settings;

                settings["timeout"].Value = client.GetClientTimeOut().ToString();

                config.Save(ConfigurationSaveMode.Modified);
                //relaod the section you modified
                ConfigurationManager.RefreshSection(config.AppSettings.SectionInformation.Name);

                //User u = client.Authenticate(txtUserID.Text.Trim(), txtPassword.Password);
                Credentials c = new Credentials();
                c.UserID = txtUserID.Text.Trim();
                c.Password = Helper.KeyGen.Encrypt(txtPassword.Password);

                User u = client.SecureAuthenticate(c);
                var admForm = new frmMain(u, this);
                this.Visibility = Visibility.Collapsed;
                this.txtPassword.Clear();
                this.txtUserID.Clear();
                this.txtUserID.Focus();
                admForm.Show();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                client.Close();  // Always close the client.
            }
        }
开发者ID:allanckw,项目名称:GEMS-Client,代码行数:56,代码来源:frmLogin.xaml.cs

示例6: Timer1_Tick

 //Timer 1
 private void Timer1_Tick(System.Object sender, System.EventArgs e)
 {
     ProgressBar1.Increment(1);
       if (ProgressBar1.Value == ProgressBar1.Maximum)
       {
     Timer1.Stop();
     Timer2.Stop();
     frmMain frmMain = new frmMain();
     frmMain.Show();
     this.Hide();
       }
 }
开发者ID:jamesneeley,项目名称:APIUI,代码行数:13,代码来源:Splash.cs

示例7: bnLogin_Click

        private void bnLogin_Click(object sender, EventArgs e)
        {
            if (CORE.Login_WinForm(txtUserName.Text, txtPassword.Text) == true)
                {
                    frmMain afrmMain = new frmMain(this);
                    if (CORE.CheckPermit_WinForm(afrmMain) == true)
                    {
                        afrmMain.LoadData();
                        afrmMain.Show();
                        this.Visible = false;
                    }

                }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:14,代码来源:frmLogin.cs

示例8: login

        public void login()
        {
            if (CORE.Login_WinForm(txtUserName.Text, txtPassword.Text) == true)
            {
                frmMain afrmMain = new frmMain(this);
                if (CORE.CheckPermit_WinForm(afrmMain) == true)
                {

                    afrmMain.Show();

                }

            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:14,代码来源:frmLogin.cs

示例9: txtPassword_KeyDown

        private void txtPassword_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (CORE.Login_WinForm(txtUserName.Text, txtPassword.Text) == true)
                {
                    frmMain afrmMain = new frmMain(this);
                    if (CORE.CheckPermit_WinForm(afrmMain) == true)
                    {
                        afrmMain.LoadData();
                        afrmMain.Show();
                        this.Visible = false;
                    }

                }
            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:17,代码来源:frmLogin.cs

示例10: bnLogin_Click

        private void bnLogin_Click(object sender, EventArgs e)
        {
            progressPanel1.Visible = true;
                if (CORE.Login_WinForm(txtUserName.Text, txtPassword.Text) == true)
                {
                    Program.sys_CurrentUser = (new SystemUsersBO()).Select_ByUsername(txtUserName.Text);
                    frmMain afrmMain = new frmMain(this);
                    if (CORE.CheckPermit_WinForm(afrmMain) == true)
                    {
                        afrmMain.LoadData();
                        //afrmMain.ReloadData();

                        afrmMain.Show();
                        progressPanel1.Visible = false;
                        this.Visible = false;
                    }

                }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:19,代码来源:frmLogin.cs

示例11: Initialize

 public void Initialize(IMainForm Parent)
 {
     parent = Parent;
     //
     frm = new frmMain();
     frm.ParentMainForm = parent;
     frm.Name = FullName;
     frm.HideOnClose = false;
     //
     //glmenu = new ToolStripMenuItem();
     //glmenu.Text = this.FullName;
     //glmenu.DropDownItems.Add(frm.mnuFile);
     //glmenu.DropDownItems.Add(frm.mnuEdit);
     //glmenu.DropDownItems.Add(frm.mnuTools);
     //glmenu.DropDownItems.Add(frm.mnuHelp);
     //parent.AddMenu(glmenu);
     //
     menu = new ToolStripMenuItem();
     menu.Text = Name;
     menu.Click += menu_Click;
     parent.AddPluginMenu(menu);
     //
     frm.Show(parent.DockPane, DockState.Document);
 }
开发者ID:NikolayIT,项目名称:NStudio,代码行数:24,代码来源:Plugin.cs

示例12: dotNetBarManager1_ItemClick

        private void dotNetBarManager1_ItemClick(object sender, EventArgs e)
        {
            DevComponents.DotNetBar.ButtonItem btItem = sender as DevComponents.DotNetBar.ButtonItem;
            if (btItem != null)
            {
                switch (btItem.Name)
                {
                    case "mOpen":
                        frmFileSelect f = new frmFileSelect();
                        f.InitData("", "", false);
                        if (f.ShowDialog() == DialogResult.OK)
                        {
                            OpenFromDatabase(f.svgDataUid);
                        }
                        break;
                    case "btLar":
                        frmlar.Show();
                        break;
                    case "mSelect":
                        tlVectorControl1.Operation = ToolOperation.Select;
                        break;
                    case "m_msel":
                        tlVectorControl1.Operation = ToolOperation.Select;
                        tlVectorControl1.Operation = ToolOperation.InterEnclosure;
                        break;
                    case "mDecreaseView":
                        //string a = tlVectorControl1.SVGDocument.SvgdataUid;

                        //tlVectorControl1.OpenFile("C:\\tl.svg");
                        //tlVectorControl1.SVGDocument.SvgdataUid = a;
                        //tlVectorControl1.Refresh();
                        //SVGFILE svg = new SVGFILE();
                        //svg.SUID = tlVectorControl1.SVGDocument.SvgdataUid;
                        //svg.SVGDATA = tlVectorControl1.SVGDocument.OuterXml;
                        //svg.FILENAME = "aaaaaaaaaa";
                        //svg.PARENTID = "1";
                        //Services.BaseService.Update<SVGFILE>(svg);
                        tlVectorControl1.Operation = ToolOperation.DecreaseView;

                        break;
                    case "mIncreaseView":
                        tlVectorControl1.Operation = ToolOperation.IncreaseView;

                        break;
                    case "mRoam":
                        tlVectorControl1.Operation = ToolOperation.Roam;
                        break;
                    case "mBack":
                        //if (MapType == "所内接线图")
                        if (tlVectorControl1.SVGDocument.SvgdataUid.Length < 20)
                        {
                            if (pid != "")
                            {
                                LoadImage = true;
                                OpenFromDatabase(pid);
                            }
                            //else{
                            //    OpenFromDatabase(SvgUID);
                            //}
                            ButtonEnb(false);
                            bk1.Visible = true;
                        }
                        MapType = "接线图";
                        break;
                    case "mEdit":

                        if (progtype == "电网规划层")
                        {
                            string yearid = str_selID;
                            //frmLayerGrade fgrade = new frmLayerGrade();
                            //fgrade.SymbolDoc = tlVectorControl1.SVGDocument;
                            //fgrade.InitData(tlVectorControl1.SVGDocument.SvgdataUid);
                            //if (fgrade.ShowDialog() == DialogResult.OK)
                            //{
                                //yearid=fgrade.GetSelectNode();

                                if (!EditRight)
                                {
                                    MessageBox.Show("您没有此权限。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                                    return;
                                }
                                if (tlVectorControl1.SVGDocument.RootElement == null)
                                {
                                    return;
                                }
                                frmMain fmain = new frmMain();
                                frmMain.MapType = MapType;
                                frmMain.progtype = progtype;

                                //fmain.Modifier = true;
                                fmain.yearID = yearid;
                                fmain.SvgName = tlVectorControl1.SVGDocument.FileName;
                                fmain.Show();

                                if (progtype == "地理信息层")
                                {
                                    fmain.ViewMenu();
                                }
                                if (pid == "")
                                {
//.........这里部分代码省略.........
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:101,代码来源:CtrlSvgView.cs

示例13: frmAlumno_FormClosing

 private void frmAlumno_FormClosing( object sender, FormClosingEventArgs e )
 {
     if ( this._studentSaveSuccessfully )
     {
         frmMatricula matricula = new frmMatricula( this._data );
         matricula.Show();
     }
     else if( ! this._closeInProgress )
     {
         frmMain main = new frmMain( this._data );
         main.Show();
     }
 }
开发者ID:SIDET2015,项目名称:LawraDesktop,代码行数:13,代码来源:frmAlumno.cs

示例14: frmregDocumento_FormClosing

 private void frmregDocumento_FormClosing( object sender, FormClosingEventArgs e )
 {
     frmMain main = new frmMain( this._data );
     main.Show();
 }
开发者ID:gsullonc,项目名称:LawraDesktop,代码行数:5,代码来源:frm_Documents.cs

示例15: frmIngresos_FormClosing

 private void frmIngresos_FormClosing(object sender, FormClosingEventArgs e)
 {
     frmMain main = new frmMain(this._dts);
     main.Show();
 }
开发者ID:gsullonc,项目名称:LawraDesktop,代码行数:5,代码来源:frmIngresos.cs


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