本文整理汇总了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);
}
}
示例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);
}
}
示例3: label7_Click
private void label7_Click(object sender, EventArgs e)
{
Info info = new Info();
info.ShowDialog();
}
示例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();
}
示例5: tsAbout_Click
private void tsAbout_Click(object sender, EventArgs e)
{
Form f = new Info();
f.ShowDialog(this);
}
示例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();
}
}
示例7: Info_OnClick
private void Info_OnClick(object sender, RoutedEventArgs e)
{
Info info = new Info();
info.ShowDialog();
}
示例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++;
}
}
示例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();
}
示例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();
}
}
}
示例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();
}
示例12: InfoToolStripMenuItem_Click
private void InfoToolStripMenuItem_Click(object sender, EventArgs e)
{
Info Autor = new Info();
Autor.ShowDialog();
}
示例13: toolStripButton1_Click
//VENTANA DE INFO
private void toolStripButton1_Click(object sender, EventArgs e)
{
Info InfoAbrir = new Info();
InfoAbrir.ShowDialog();
}
示例14: bHelp_Click
private void bHelp_Click(object sender, EventArgs e)
{
Info win_info = new Info();
win_info.ShowDialog();
}
示例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();
}
}
}