本文整理汇总了C#中DialogResult.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# DialogResult.ToString方法的具体用法?C# DialogResult.ToString怎么用?C# DialogResult.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DialogResult
的用法示例。
在下文中一共展示了DialogResult.ToString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EnableButton
public void EnableButton(ref Button button, DialogResult r1)
{
button.Text = "&" + r1.ToString();
button.DialogResult = r1;
button.Visible = true;
button.Click += Button_Click;
}
示例2: button3_Click
private void button3_Click(object sender, EventArgs e)
{
DialogResult dr = new DialogResult();
Form2 form2 = new Form2();
form2.SetTitle = "my pop fdgdfgfd";
form2.ActionMethod = new action();
dr = form2.ShowDialog();
MessageBox.Show(dr.ToString());
if (dr == DialogResult.Abort)
MessageBox.Show("User clicked abort button----");
else if (dr == DialogResult.Cancel)
MessageBox.Show("User clicked Cancel button-----");
}
示例3: selectFile_Click
private void selectFile_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog opd = new OpenFileDialog();
opd.Title = "Select a configration file...";
opd.Filter = "Configration Files(*.xml)|*.xml|All Files|*.*";
opd.ValidateNames = true;
opd.CheckPathExists = true;
opd.CheckFileExists = true;
DialogResult dr = new DialogResult();
dr = opd.ShowDialog();
if (dr.ToString() == "OK")
{
configFilePath.Text = opd.FileName;
}
}
示例4: Test_OpenFileDialogWithDelegate_finished
public static void Test_OpenFileDialogWithDelegate_finished(object o, DialogResult dr)
{
MessageBox.Show(dr.ToString());
}
示例5: Test_FolderBrowserDialogWithDelegate_finished
public static void Test_FolderBrowserDialogWithDelegate_finished(object o, DialogResult dr)
{
MessageBox.Show(dr.ToString());
}
示例6: CallbackConfExistsDialog
public void CallbackConfExistsDialog(DialogResult result)
{
Debug.Log (result.ToString ());
}