예제 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            this.Text = ApplicationName + " " + VersionString;
            this.typeCombo.DataSource = Enum.GetNames(typeof(ServerItemType));
            this.stackOrderComboBox.DataSource = Enum.GetNames(typeof(TileStackOrder));

            this.candidatesDropDown.Items.Add(new ToolStripControlHost(this.candidatesTableLayoutPanel));

            Trace.Listeners.Clear();
            this.textBoxListener = new TextBoxTraceListener(this.outputTextBox);
            Trace.Listeners.Add(this.textBoxListener);

            this.SelectItem(null);

            Program.plugins.FindPlugins();
            Sprite.CreateBlankSprite();
        }
예제 #2
0
		private void MainForm_Load(object sender, EventArgs e)
		{
			this.Text = applicationName;
			typeCombo.DataSource = Enum.GetNames(typeof(ItemType));

			this.candidatesDropDown.Items.Add(new ToolStripControlHost(this.candidatesTableLayoutPanel));

			Trace.Listeners.Clear();
			textBoxListener = new TextBoxTraceListener(outputTextBox);
			Trace.Listeners.Add(textBoxListener);

			SelectItem(null);

			Program.preferences.Load();
			Program.plugins.FindPlugins();
			Sprite.CreateBlankSprite();
		}