예제 #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 menuItemInfo_Click(object sender, System.EventArgs e)
 {
     frmInfo frminfo = new frmInfo();
     frminfo.Show();
 }