Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
		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;
			}
		}
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
        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;
            }
        }
Exemplo n.º 5
0
		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;
		}
Exemplo n.º 6
0
		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;
			}
		}