Ejemplo n.º 1
0
        /// <summary>
        /// フォームLoadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainForm_Load(object sender, EventArgs e)
        {
            if (Control.ModifierKeys == System.Windows.Forms.Keys.Shift)
            {
                this.Width = 470;
            }
#if DEBUG
            this.Width = 470;
#endif

            //pol
            setPolList();
            if (cmbPol.Items.Count < 1)
            {
                MessageBox.Show("FF11を起動してください。", MiscTools.GetAppTitle(), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
                System.Environment.Exit(0); //プログラム終了
            }
            cmbPol.SelectedIndex = 0;
            btnPolAttach_Click(this, new EventArgs());
            //チャットクリア
            EliteAPI.ChatEntry cl = api.Chat.GetNextChatLine();
            while (cl != null)
            {
                cl = api.Chat.GetNextChatLine();
            }

            //フォーム初期化
            initForm();

            //timer起動
            timMonitor.Interval = 100;
            timMonitor.Enabled  = true;
            timDebug.Interval   = 100;
            timDebug.Enabled    = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// POLアタッチ クリックイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPolAttach_Click(object sender, EventArgs e)
        {
            int    polID   = getSelectedPolID();
            string polName = getSelectedPolName();

            Console.WriteLine("PolID:{0}", polID);
            Console.WriteLine("PolID:{0}", polName);
            api      = new EliteAPI(polID);
            settings = new Settings(polName);

            this.Text = string.Format(Constants.WINDOW_TITLE_FORMAT, MiscTools.GetAppTitle(), MiscTools.GetAppVersion(), polName);
        }