private void ChangesDownloaded(object sender, DownloadStringCompletedEventArgs args) { using (var form = new Changes()) { form.Controls["textBox1"].Text = args.Result; form.ShowDialog(); } }
private void MainWindow_Load(object sender, EventArgs e) { Settings.Default.Upgrade(); attr = new AttributesWindow(); attr.inst = this; groupSettings.Enabled = false; groupAttributes.Enabled = false; Text = "TF2 Items Editor v2 build #" + System.Reflection.Assembly.GetEntryAssembly().GetName().Version.Revision; AttribOffsetX = Width - ClientSize.Width; AttribOffsetY = 0; string str = ""; stripTxt.Image = null; if (tabControl1.SelectedTab == tabItemsGame) { str = "File->Open->items_game.txt to open items_game.txt!"; stripTxt.Image = images.Images["Warning"]; } else if(tabControl1.SelectedTab == tabEnglish) { str = "File->Open->tf_english.txt to open tf_english.txt!"; stripTxt.Image = images.Images["Warning"]; } stripTxt.Text = str; if (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.IsFirstRun) { using (var form = new Changes()) { form.ShowDialog(); } } }