示例#1
0
文件: frmMain.cs 项目: hkiaipc/lx
        /// <summary>
        /// ����������
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
        {
            if (e.Button == this.toolBarSelect)
                SwitchRun();
            else if (e.Button == this.toolBarInfo)
                ShowInfoDialog();

            switch (e.Button.Text)
            {
                case "��¼":
                    //                    frmLogin f=new frmLogin();
                    //                    f.GetRole+=new GprsSystem.frmLogin.MyDelegate(Operate_GetRole);
                    //                    f.isShow=true;
                    //                    f.Show();
                    MessageBox.Show("���ù���", DeviceInfoManager.TEXT_TIP, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    break;
                case "ע��":
                    //                    this.Operate_GetRole(4);
                    MessageBox.Show("���ù���", DeviceInfoManager.TEXT_TIP, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    break;
                case "����":
                    // this.Text="Gprs�ɼ�ϵͳ�������Ųɼ�";
                    this.listView_Gate.Visible = true;
                    this.listView_Pump.Visible = false;
                    RefreshGateLastData();

                    break;
                case "��վ":
                    // this.Text="Gprs�ɼ�ϵͳ������վ�ɼ�";
                    this.listView_Gate.Visible = false;
                    this.listView_Pump.Visible = true;
                    break;
                case "��Ϣ":
                    frmInfo frminfo = new frmInfo();
                    frminfo.Show();
                    break;

                case "����":
                    //                    this.Test();
                    frmAbout frm = new frmAbout();
                    frm.ShowDialog();
                    break;
            }
        }
示例#2
0
文件: frmMain.cs 项目: hkiaipc/lx
        /// <summary>
        /// ����
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemAbout_Click(object sender, System.EventArgs e)
        {
            frmAbout frm = new frmAbout();
            frm.ShowDialog();

            //TestSavePumpHis();
        }