本文整理汇总了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!");
}
}
示例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
{
}
}
示例3: Info_OnClick
private void Info_OnClick(object sender, RoutedEventArgs e)
{
Info info = new Info();
info.Show();
}
示例4: infoToolStripMenuItem_Click
private void infoToolStripMenuItem_Click(object sender, EventArgs e)
{
Info child = new Info(this);
child.Show();
}
示例5: btInfo_Click
private void btInfo_Click(object sender, EventArgs e)
{
Info info = new Info();
info.Show();
}
示例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;
}
}
}
}
}
示例7: linkLabel1_LinkClicked
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Info info = new Info();
info.Show();
this.Close();
}
示例8: cbOnTop_CheckStateChanged
private void cbOnTop_CheckStateChanged(object sender, EventArgs e)
{
this.Close();
Info info = new Info();
info.Show();
}
示例9: Info
private void ����ToolStripMenuItem_Click(object sender, EventArgs e)
{
Info info = new Info();
info.Show();
}