示例#1
0
        /// <summary>
        /// 显示窗体
        /// </summary>
        /// <param name="var">变量</param>
        /// <returns>状态</returns>
        private double SHOWWINDOW(CVariable var)
        {
            String      xmlName    = m_indicator.GetText(var.m_parameters[0]);
            String      windowName = m_indicator.GetText(var.m_parameters[1]);
            WindowXmlEx window     = new WindowXmlEx();

            window.Load(m_xml.Native, xmlName, windowName);
            window.Show();
            if (xmlName == "HotKeyWindow")
            {
                TextBoxA txtKey = window.GetTextBox("txtHotKey");
                txtKey.Text = "本软件有如下快捷键:\r1. F1-F3  --> 快速出价100-300元\r2. F4-F10 --> 快速伏击400-1000元\r3. F11    --> 出价   \rHome   --> 伏击   \rEnd    --> 取消出价   \rEnter  --> 提交验证码   \rEsc    --> 手动断网重连4. 方向键【↑】及【↓】快速调整价格";
            }
            return(0);
        }
示例#2
0
 /// <summary>
 /// 点击事件
 /// </summary>
 /// <param name="sender">调用者</param>
 /// <param name="mp">坐标</param>
 /// <param name="button">按钮</param>
 /// <param name="clicks">点击次数</param>
 /// <param name="delta">滚轮值/param>
 private void ClickEvent(object sender, POINT mp, MouseButtonsA button, int clicks, int delta)
 {
     if (button == MouseButtonsA.Left && clicks == 1)
     {
         ControlA control = sender as ControlA;
         String   name    = control.Name;
         if (name == "AA")
         {
             DimensionWindow performanceWindow = new DimensionWindow(Native);
             performanceWindow.ShowDialog();
         }
         else if (name == "AOA")
         {
             StaffWindow staffWindow = new StaffWindow(Native);
             staffWindow.ShowDialog();
         }
         else if (name == "AAM")
         {
             ProjectWindow projectWindow = new ProjectWindow(Native);
             projectWindow.ShowDialog();
         }
         else if (name == "AI")
         {
             AwardWindow awardWindow = new AwardWindow(Native);
             awardWindow.ShowDialog();
         }
         else if (name == "BAR")
         {
             CalendarWindow calendarWindow = new CalendarWindow(Native);
             calendarWindow.ShowDialog();
         }
         else if (name == "CA")
         {
             MasterWindow masterWindow = new MasterWindow(Native);
             masterWindow.ShowDialog();
         }
         else if (name == "CCM")
         {
             GitWindow gitWindow = new GitWindow(Native);
             gitWindow.ShowDialog();
         }
         else if (name == "COI")
         {
             ServerWindow serverWindow = new ServerWindow(Native);
             serverWindow.ShowDialog();
         }
         else if (name == "GTM")
         {
             ClueWindow clueWindow = new ClueWindow(Native);
             clueWindow.ShowDialog();
         }
         else if (name == "IAC")
         {
             PersonalWindow personalWindow = new PersonalWindow(Native);
             personalWindow.ShowDialog();
         }
         else if (name == "LP")
         {
             OpinionWindow opinionWindow = new OpinionWindow(Native);
             opinionWindow.ShowDialog();
         }
         else if (name == "OI")
         {
             FollowWindow followWindow = new FollowWindow(Native);
             followWindow.ShowDialog();
         }
         else if (name == "PH")
         {
             RemoteWindow remoteWindow = new RemoteWindow(Native);
             remoteWindow.ShowDialog();
         }
         else if (name == "RI")
         {
             JidianWindow jidianWindow = new JidianWindow(Native);
             jidianWindow.ShowDialog();
         }
         else if (name == "TC")
         {
             Process          process   = new Process();
             ProcessStartInfo startInfo = new ProcessStartInfo();
             startInfo.FileName  = DataCenter.GetAppPath() + "\\iTeam.exe";
             startInfo.Arguments = "-plan";
             process.StartInfo   = startInfo;
             process.Start();
         }
         else if (name == "UA")
         {
             LevelWindow levelWindow = new LevelWindow(Native);
             levelWindow.ShowDialog();
         }
         else if (name == "UIM")
         {
             WindowXmlEx skyWindow = new WindowXmlEx();
             skyWindow.Load(Native, "SkyWindow", "skyWindow");
             skyWindow.ShowDialog();
         }
         else if (name == "BS")
         {
             BSStockWindow bsStockWindow = new BSStockWindow(Native);
             bsStockWindow.ShowDialog();
         }
         else if (name == "RP")
         {
             ExamWindow reportWindow = new ExamWindow(Native);
             reportWindow.ShowDialog();
         }
         else if (name == "BC")
         {
             BusinessCardWindow businessCardWindow = new BusinessCardWindow(Native);
             businessCardWindow.ShowDialog();
         }
         else if (name == "OW")
         {
             DialogWindow dialogWindow = new DialogWindow(Native);
             dialogWindow.ShowDialog();
         }
     }
 }