Esempio n. 1
0
        public FFXIV_netBot()
        {
            this.settingsLoaded = this.loadFileTimings();
            InitializeComponent();
            this.loadConfigCombobox.Enabled   = false;
            this.loadWaypointCombobox.Enabled = false;
            this.rescanDirectory = true;

            this.closeButton                       = new Controls.ImageButton();
            this.closeButton.Parent                = this;
            this.closeButton.ForeColor             = Color.Transparent;
            this.closeButton.BackgroundImage       = global::FFXIV_netBot.Properties.Resources.closeBtn;
            this.closeButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.closeButton.Location              = new System.Drawing.Point(245, 11);
            this.closeButton.Name                  = "buttonClose";
            this.closeButton.Size                  = new System.Drawing.Size(19, 18);
            this.closeButton.TabStop               = false;
            this.closeButton.Click                += new System.EventHandler(this.cancelButton_Click);
            this.Controls.Add(this.closeButton);

            if (this.settingsLoaded)
            {
                this.initBotHandler();
                this.MainDataCollector.Start();
            }
        }
Esempio n. 2
0
        public WaypointForm(FFXIV_netBot mainForm, FinalFantasyXIVMemory memory)
        {
            this.TopMost = true;
            InitializeComponent();
            this.closeButton                       = new Controls.ImageButton();
            this.closeButton.Parent                = this;
            this.closeButton.ForeColor             = Color.Transparent;
            this.closeButton.BackgroundImage       = global::FFXIV_netBot.Properties.Resources.closeBtn;
            this.closeButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
            this.closeButton.Location              = new System.Drawing.Point(590, 11);
            this.closeButton.Name                  = "button1";
            this.closeButton.Size                  = new System.Drawing.Size(19, 18);
            this.closeButton.TabStop               = false;
            this.closeButton.Click                += new System.EventHandler(this.exitPressed);
            this.Controls.Add(this.closeButton);

            this.mainForm           = mainForm;
            this.memory             = memory;
            this.fileNameLabel.Text = "";
            this.waypointList       = new List <Waypoint>();
        }