当前位置: 首页>>代码示例>>C#>>正文


C# Info.ShowDialog方法代码示例

本文整理汇总了C#中Info.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# Info.ShowDialog方法的具体用法?C# Info.ShowDialog怎么用?C# Info.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Info的用法示例。


在下文中一共展示了Info.ShowDialog方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: button1_Click

        private void button1_Click(object sender, EventArgs e)
        {
            Main.searchid = textBox1.Text;
            SqlConnection con = Main.connection;
            con.Open();
            string find = "SELECT شناسه from کالا where شناسه='" + textBox1.Text+ "'";
            SqlCommand command = new SqlCommand(find, con);
            SqlDataReader dr = command.ExecuteReader();
            dr.Read();
            string check = "0";
            if (dr.HasRows)
            {

                check = "1";
                con.Close();
               Info frm = new Info();

                frm.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("یافت نشد", "پیغام", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);

            }
        }
开发者ID:uwitec,项目名称:Asset_Mng,代码行数:26,代码来源:subsearch.cs

示例2: DisplayAppropriateMessage

        private void DisplayAppropriateMessage(FacebookOAuthResult facebookOAuthResult)
        {
            if (facebookOAuthResult == null)
            {
                // most likely user closed the FacebookLoginDialog, so do nothing
                return;
            }

            if (facebookOAuthResult.IsSuccess)
            {
                // we got the access token
                var infoDialog = new Info(facebookOAuthResult.AccessToken);
                infoDialog.ShowDialog();
            }
            else
            {
                // for some reason we failed to get the access token.
                // most likely the user clicked don't allow
                MessageBox.Show(facebookOAuthResult.ErrorDescription);
            }
        }
开发者ID:nitzo,项目名称:MegaStarz,代码行数:21,代码来源:MainForm.cs

示例3: label7_Click

 private void label7_Click(object sender, EventArgs e)
 {
     Info info = new Info();
     info.ShowDialog();
 }
开发者ID:Hector-Ab,项目名称:PeXploit,代码行数:5,代码来源:PeXploit_Main.cs

示例4: infoToolStripMenuItem_Click

 /// <summary>
 /// anzeige von Programminfos
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void infoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Info info = new Info();
     info.ShowDialog();
 }
开发者ID:garyStofer,项目名称:gse-ufo-18f2540,代码行数:10,代码来源:FormMain.cs

示例5: tsAbout_Click

 private void tsAbout_Click(object sender, EventArgs e)
 {
     Form f = new Info();
     f.ShowDialog(this);
 }
开发者ID:TwistedMexi,项目名称:CudaManager,代码行数:5,代码来源:Form1.cs

示例6: dataGridView1_CellDoubleClick

        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView1.SelectedCells.Count > 0)
            {
                DataGridViewRow row = dataGridView1.SelectedRows[0];
                SqlConnection connection = Main.connection;
                string ID = Convert.ToString(row.Cells[0].Value);
                //  MessageBox.Show(ID);

                searchid = ID;
                Info frm = new Info();
                frm.ShowDialog();
            }
        }
开发者ID:uwitec,项目名称:Asset_Mng,代码行数:14,代码来源:Main.cs

示例7: Info_OnClick

 private void Info_OnClick(object sender, RoutedEventArgs e)
 {
     Info info = new Info();
     info.ShowDialog();
 }
开发者ID:Quodnon,项目名称:CRMDeveloperExtensions,代码行数:5,代码来源:PluginList.xaml.cs

示例8: UnpackCommandline

    private void UnpackCommandline()
    {
        string cmdLn = Environment.GetCommandLineArgs().Aggregate("", (current, arg) => current + arg);

        if (cmdLn.IndexOf('|') == -1)
        {
            _called = false;
            var info = new Info();
            info.ShowDialog();
            Close();
        }


        string[] tmpCmd = cmdLn.Split('|');

        for (int i = 1; i < tmpCmd.GetLength(0); i++)
        {
            if (tmpCmd[i] == "downloadFile") _downloadFile = tmpCmd[i + 1];
            if (tmpCmd[i] == "URL") _url = tmpCmd[i + 1];
            if (tmpCmd[i] == "destinationFolder") _destinationFolder = tmpCmd[i + 1];
            if (tmpCmd[i] == "processToEnd") _processToEnd = tmpCmd[i + 1];
            if (tmpCmd[i] == "postProcess") _postProcessFile = tmpCmd[i + 1];
            if (tmpCmd[i] == "command") _postProcessCommand += @" /" + tmpCmd[i + 1];
            i++;
        }
    }
开发者ID:afrog33k,项目名称:eAd,代码行数:26,代码来源:Update.cs

示例9: Button_Print_MouseUp

        private void Button_Print_MouseUp(object sender, MouseEventArgs e)
        {
            this.Button_Print.BackgroundImage = Image.FromFile(path + "\\images\\切图\\优惠券详细弹出\\打印.jpg");
            Info info;

            if (pi.flaPrice != 0)
            {
                info = new Info(pi.flaPrice, pi.name, Frame);
                if (info.ShowDialog() == DialogResult.Yes)
                {
                    check check = new check(pi.flaPrice, pi.id, Frame);
                    if (check.ShowDialog() == DialogResult.Yes)
                    {
                        try
                        {
                            wait = new Wait();
                            new System.Threading.Thread(DoWork).Start();
                            Thread.Sleep(500);
                            wait.ShowDialog();
                        }
                        catch (Exception e1)
                        {
                            ErrorLog.log(e1);
                        }
                    }
                }
            }
            else
            {
                info = new Info(pi.flaPrice, pi.name, Frame);

                if (info.ShowDialog() == DialogResult.Yes)
                {
                    try
                    {
                        wait = new Wait();
                        new System.Threading.Thread(DoWork).Start();
                        wait.ShowDialog();
                    }
                    catch (Exception e1)
                    {
                        ErrorLog.log(e1);
                    }
                }
            }

            Thread.Sleep(200);
            this.Close();
        }
开发者ID:vanloc0301,项目名称:ecouponsprinter,代码行数:49,代码来源:CouponsPopForm.cs

示例10: Info

 private void информацияОПроцессеToolStripMenuItem_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < listView1.Items.Count; i++)
     {
         if (listView1.Items[i].Selected)
         {
             int CurrentProcess = Convert.ToInt32(listView1.Items[i].SubItems[2].Text);
             Info inf =new Info(Process.GetProcessById(CurrentProcess));
             inf.ShowDialog();
         }
     }
 }
开发者ID:evgenij1204,项目名称:TaskManager,代码行数:12,代码来源:Form1.cs

示例11: mInfo_Click

	private void mInfo_Click(object sender, EventArgs e)
	{
		//Shows info about the playlist
		Hashtable ht = new Hashtable();
		ListView lv = new ListView();
		Info info = new Info(lv);
		info.ShowDialog();
	}
开发者ID:winch,项目名称:winch.pinkbile.com-c-sharp,代码行数:8,代码来源:area.cs

示例12: InfoToolStripMenuItem_Click

 private void InfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Info Autor = new Info();
     Autor.ShowDialog();
 }
开发者ID:golf2109,项目名称:StepperControl,代码行数:5,代码来源:Form1.cs

示例13: toolStripButton1_Click

 //VENTANA DE INFO
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     Info InfoAbrir = new Info();
     InfoAbrir.ShowDialog();
 }
开发者ID:Thargelion,项目名称:IMP,代码行数:6,代码来源:Form1.cs

示例14: bHelp_Click

 private void bHelp_Click(object sender, EventArgs e)
 {
     Info win_info = new Info();
     win_info.ShowDialog();
 }
开发者ID:lukemols,项目名称:Negozio_di_Viola,代码行数:5,代码来源:HomePage.cs

示例15: listView1_DoubleClick

 private void listView1_DoubleClick(object sender, EventArgs e)
 {
     int index = (int)listView1.SelectedItems[0].Tag;
     DataSet1.recordDataRow newRow = dataSet1.recordData.FindByid(index);
     Info dlg = new Info(newRow);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         if (dlg.Edited)
         {
             dataSet1.recordData.FindByid(index).ItemArray = dlg.LoadedRow.ItemArray;
             updateListView(sort(filter()));
             this.changed = true;
             ShowItems();
         }
     }
 }
开发者ID:djdominoSVK,项目名称:SchoolStuff,代码行数:16,代码来源:MainMenu.cs


注:本文中的Info.ShowDialog方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。