示例#1
0
        private void tsbSet_Click(object sender, EventArgs e)
        {
            fm = this;
            frmSetting fs = new frmSetting();

            fs.ShowDialog();
        }
示例#2
0
        public static void Init(frmMain main)
        {
            if (INI == null)
            {
                var parser = new FileIniDataParser();
                INI = parser.ReadFile("Config.ini");
            }

            Servers = new Dictionary <string, ServerInfo>();
            var items = INI["SETTING"]["SERVER"].Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var item in items)
            {
                var server = ServerInfo.Create(item.Split('|'));
                if (server == null || Servers.ContainsKey(server.Key))
                {
                    continue;
                }
                Servers.Add(server.Key, server);
            }
            Monitors = new Dictionary <string, Monitor>();

            Main       = main;
            StopNotify = new frmSetting();
        }
示例#3
0
 private void vatDiscountToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (setting.IsDisposed)
     {
         setting = new frmSetting();
     }
     setting.Show();
     setting.BringToFront();
 }
示例#4
0
 private void btnSetting_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (fr12 == null)
     {
         fr12           = new frmSetting();
         fr12.MdiParent = this;
         fr12.Show();
     }
 }
示例#5
0
        private void button2_Click(object sender, EventArgs e)
        {
            string tempStr = iCrype.CryptString(iniControl.IniReadValue("System", "CRMPassword"));

            if (textBox1.Text == tempStr)
            {
                var iSetting = new frmSetting();
                iSetting.ShowDialog();
                Show();
            }
        }
示例#6
0
 private void buttonHocSinh_Click(object sender, EventArgs e)
 {
     if (m_HocSinh == null || m_HocSinh.IsDisposed)
     {
         m_HocSinh = new frmSetting();
         m_HocSinh.MdiParent = frmMain.ActiveForm;
         m_HocSinh.Show();
     }
     else
         m_HocSinh.Activate();
 }
示例#7
0
        public static void Init()
        {
            //LogForm = new frmLog();
            if (INI == null)
            {
                var parser = new FileIniDataParser();
                INI = parser.ReadFile(CONFIGFILE);
            }
            _InitPATS();

            LogForm          = new frmLog();
            SettingForm      = new frmSetting();
            OrderSettingForm = new frmOrderSetting();
            OrderRPTForm     = new frmOrderReport();
            DealRPTForm      = new frmDealReport();
            CancelRPTForm    = new frmCancelReport();
            ErrRPTForm       = new frmErrReport();
            SummaryForm      = new frmSummary();
        }
示例#8
0
 /// <summary>
 /// 打开设置界面
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnSetting_Click(object sender, EventArgs e)
 {
     try
     {
         frmSetting setting = new frmSetting();
         if (setting.ShowDialog() == DialogResult.Yes)
         {
             server.StopServer();
             server.Setting.InitialData();
             StartServer();
             qrcodeControl.SetServerInfo(this.txtNetAddress.Text, server.Setting.TcpServerPort, server.Setting.HttpServerPort);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         Application.Exit();
     }
 }
示例#9
0
        private void 系统设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var iCustem = new frmSetting {
                TopLevel = false, Dock = DockStyle.Fill, Parent = panelFunctiron
            };

            /*
             * iCustem.MysqlAccount = MysqlAccount;
             * iCustem.MysqlDatabase = MysqlDatabase;
             * iCustem.MysqlPassword = MysqlPassword;
             * iCustem.MysqlURL = MysqlURL;
             * iCustem.FTPAccount = FTPAccount;
             * iCustem.FTPPassword = FTPPassword;
             * iCustem.FTPURL = FTPURL;
             * iCustem.PassCMS = PassCMS;
             * iCustem.PassCRM = PassCRM;
             * iCustem.PassTool = PassTool;
             */
            iCustem.Show();
            iCustem.BringToFront();
            panelFunctiron.BringToFront();
            //ReadSetting();
        }
示例#10
0
        /// <summary>
        /// 工具菜单单击事件处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdTool_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

            if (e.Item.Tag != null)
            {
                Cursor currentCursor = Cursor.Current;
                Cursor.Current = Cursors.WaitCursor;



                //退出按钮
                if (e.Link.Item.Tag.ToString() == "Exit")
                {
                    //common._its_accessdb = null;
                    if (XtraMsgBox.Show("[" + this.Text + "]?", this.Text, MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel)
                        return;

                    this.Close();
                    return;
                }

                //安装按钮处理
                if (e.Link.Item.Tag.ToString() == "frmSetup")
                {
                    frmSetting frmSetup = new frmSetting();
                    frmSetup.ShowDialog();
                    frmSetup = null;
                    return;
                }


                //关于

                if (e.Link.Item.Tag.ToString() == "frmAbout")
                {
                    return;
                }

                //帮助文档
                if (e.Link.Item.Tag.ToString().IndexOf("help") >= 0)
                {
                    try
                    {

                        System.Diagnostics.Process process = new System.Diagnostics.Process();
                        process.StartInfo.FileName = Common.GetSolutionPath(Application.StartupPath) + e.Link.Item.Tag.ToString() + ".pdf";
                        process.StartInfo.Verb = "Open";
                        process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
                        process.Start();
                        return;
                    }
                    catch (Exception ex)
                    {
                        XtraMsgBox.Show(ex.ToString(), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }

                if (!CheckExistsForm(e.Item.Tag.ToString().ToString()))
                {
                    ShowForm(e.Link.Item.Tag.ToString());
                }

                Cursor.Current = currentCursor;
            }

        }
示例#11
0
 private void toolStripMenuItem46_Click(object sender, EventArgs e)
 {
     if (m_HocSinh == null || m_HocSinh.IsDisposed)
     {
         m_HocSinh = new frmSetting();
         m_HocSinh.MdiParent = frmMain.ActiveForm;
         m_HocSinh.MaximizeBox = false;
         m_HocSinh.Show();
     }
     else m_HocSinh.Activate();
 }
示例#12
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            frmSetting formlog1 = new frmSetting();

            formlog1.Show();
        }
示例#13
0
        private void tsSetting_Click(object sender, EventArgs e)
        {
            frmSetting setting = new frmSetting();

            setting.ShowDialog();
        }
示例#14
0
 private void toolStripMenuItem63_Click(object sender, EventArgs e)
 {
     if (m_Setting == null || m_Setting.IsDisposed)
     {
         m_Setting = new frmSetting();
         m_Setting.MdiParent = frmSetting.ActiveForm;
         m_Setting.Show();
     }
     else m_Setting.Activate();
 }
示例#15
0
        private void tsbSet_Click(object sender, EventArgs e)
        {
            frmSetting f = new frmSetting();

            f.Show();
        }
示例#16
0
文件: Main.cs 项目: zly071948/SAS
 private void buttonItem4_Click(object sender, EventArgs e)
 {
     fm = this;
     frmSetting fs = new frmSetting();
     fs.ShowDialog();
 }
示例#17
0
        private void btnSetting_Click(object sender, EventArgs e)
        {
            frmSetting setting = new frmSetting();

            setting.Show();
        }