private void cmdInfo_Click(object sender, EventArgs e) { frmInfo fi = new frmInfo(enums.infoType.techno, curTechno); string oldText = this.Text; this.Text = ""; fi.ShowDialog(); this.Text = oldText; }
public static void show( Form parent, order ind) { if ( mode && !alreadySeen[ (int)ind ] ) { string title = parent.Text; // S:\pH\Pocket Humanity\forms\ parent.Text = ""; frmInfo fi = new frmInfo( enums.infoType.tutorial, (int)ind ); fi.ShowDialog(); alreadySeen[ (int)ind ] = true; parent.Text = title; } }
public static void show(Form parent, order ind) { if ( mode && !alreadySeen[(int)ind] ) { string title = parent.Text; // S:\pH\Pocket Humanity\forms\ parent.Text = ""; frmInfo fi = new frmInfo(enums.infoType.tutorial, (int)ind); fi.ShowDialog(); alreadySeen[(int)ind] = true; parent.Text = title; } }
private void tvInfo_AfterSelect(object sender, TreeViewEventArgs e) { if (tvInfo.SelectedNode.Nodes.Count == 0) { string title = this.Text; platformSpec.manageWindows.prepareForDialog(this); //this.Text = ""; try { frmInfo fi = new frmInfo((enums.infoType)Convert.ToInt32(tvInfo.SelectedNode.Parent.Tag), Convert.ToInt32(tvInfo.SelectedNode.Tag)); fi.ShowDialog(); } catch { MessageBox.Show("Error within encyclopedia, some items aren't completed.", "Known bug"); } this.Text = title; } }
private void cmdInfo_Click(object sender, EventArgs e) { frmInfo fi = new frmInfo( enums.infoType.techno, curTechno ); string oldText = this.Text; this.Text = ""; fi.ShowDialog(); this.Text = oldText; }
private void tvInfo_AfterSelect(object sender, TreeViewEventArgs e) { if ( tvInfo.SelectedNode.Nodes.Count == 0 ) { string title = this.Text; platformSpec.manageWindows.prepareForDialog( this ); //this.Text = ""; try { frmInfo fi = new frmInfo( (enums.infoType)Convert.ToInt32( tvInfo.SelectedNode.Parent.Tag ), Convert.ToInt32( tvInfo.SelectedNode.Tag ) ); fi.ShowDialog(); } catch { MessageBox.Show( "Error within encyclopedia, some items aren't completed.", "Known bug" ); } this.Text = title; } }