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


C# Info.Show方法代码示例

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


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

示例1: button1_Click

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length != 0)
            {

                var numePrenume = textBox1.Text.Trim().Split(' ');

               
                    if (numePrenume.Count() > 1)
                    {
                        var nume = numePrenume[0];
                        var prenume = numePrenume[1];
                        var connString = (@"Data Source=" + System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)) + @"\Angajati.sdf");
                        using (var conn = new SqlCeConnection(connString))
                        {
                            try
                            {

                                conn.Open();
                                var query = "SELECT COUNT(*) FROM info WHERE Nume='" + nume + "' AND Prenume='" + prenume + "'";
                                var command = new SqlCeCommand(query, conn);
                                var dataAdapter = new SqlCeDataAdapter(command);
                                var dataTable = new DataTable();
                                dataAdapter.Fill(dataTable);

                                //checks if there's the searched record is in the db.
                                int infoCount = (int)command.ExecuteScalar();
                                if (infoCount > 0)
                                {
                                    Info form = new Info(nume, prenume);
                                    form.Show();
                                }
                                else
                                {
                                    MessageBox.Show("Nu exista un angajat cu acest nume");
                                }


                            }
                            catch (Exception ex)
                            {
                                MessageBox.Show(ex.ToString());
                            }

                        }
                    }
                    else
                    {
                        MessageBox.Show("Nu ai introdus prenumele");

                    }
                }
                else
                {
                    MessageBox.Show("Nu ai introdus nici un nume!");
                }
            }
开发者ID:sdkk,项目名称:PaymentClocking,代码行数:57,代码来源:Main.cs

示例2: linkLabel1_LinkClicked

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("If you go to other form, Choice 21-40 will be resetted. Continue?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            if (dialogResult == DialogResult.Yes)
            {
                Info inf = new Info();
                inf.Show();
                this.Hide();
            }
            else
            {

            }
        }
开发者ID:godofknife,项目名称:SPB,代码行数:14,代码来源:Test2.cs

示例3: Info_OnClick

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

示例4: infoToolStripMenuItem_Click

 private void infoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Info child = new Info(this);
     child.Show();
 }
开发者ID:omidcc,项目名称:Medical-Store,代码行数:5,代码来源:Mdi+parent1.cs

示例5: btInfo_Click

 private void btInfo_Click(object sender, EventArgs e)
 {
     Info info = new Info();
     info.Show();
 }
开发者ID:LokaverkefniGRU,项目名称:Forrit,代码行数:5,代码来源:Main.cs

示例6: pictureBox1_Click

        public void pictureBox1_Click(object sender, EventArgs e)
        {
            PicBox pic = (PicBox)sender;
            if (!isPrint)
            {
                Info frame = new Info();
                frame.Show();
                frame.Info_cat_txt.Text = pic.coin.catName;
                frame.Info_id.Text = "ID: " + pic.coin.id;
                frame.Info_jpg.Image = pic.coin.image;
                frame.Info_name_txt.Text = pic.coin.name;
                frame.Info_number_txt.Text = "" + pic.coin.number;
                frame.Info_date_txt.Text = "" + pic.coin.date.Day + "." + pic.coin.date.Month + "." + pic.coin.date.Year;
                if (pic.coin.CDRPath.Length>0)
                frame.Info_cdr_path_txt.Text = "" + pic.coin.CDRPath.Substring(0, (pic.coin.CDRPath.Length-pic.coin.number.ToString().Length));
                frame.SetFields();
                frame.picbox = pic;
                frame.Info_tags.Text = pic.coin.tag;

            }
            else
            {

                if (AddToPrintList(pic) == 1)
                {
                    pic.selected = true;
                    pic.BorderStyle = BorderStyle.Fixed3D;
                    RefreshToPrintBox();

                }
                else {

                    pic.selected = false;
                    pic.BorderStyle = BorderStyle.None;
                    for (int i = 0; i < toPrintList.Count;i++ )
                    {
                        if(pic.coin.Equals(toPrintList[i].coin)){
                            toPrintList.RemoveAt(i);
                            RefreshToPrintBox();
                            break;
                        }

                    }

                }

            }
        }
开发者ID:rolaleks,项目名称:Coins,代码行数:48,代码来源:Form1.cs

示例7: linkLabel1_LinkClicked

 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Info info = new Info();
     info.Show();
     this.Close();
 }
开发者ID:godofknife,项目名称:SPB,代码行数:6,代码来源:HistoryResult2.cs

示例8: cbOnTop_CheckStateChanged

 private void cbOnTop_CheckStateChanged(object sender, EventArgs e)
 {
     this.Close();
     Info info = new Info();
     info.Show();
 }
开发者ID:LokaverkefniGRU,项目名称:Forrit,代码行数:6,代码来源:InfoOnTop.cs

示例9: Info

 private void ����ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Info info = new Info();
     info.Show();
 }
开发者ID:zjk537,项目名称:ModelCollect,代码行数:5,代码来源:PersonalEdition.cs


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