本文整理汇总了C#中System.Form1.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# Form1.ShowDialog方法的具体用法?C# Form1.ShowDialog怎么用?C# Form1.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Form1
的用法示例。
在下文中一共展示了Form1.ShowDialog方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ControladorAlumnos
public ControladorAlumnos()
{
baseDeDatos = new alumnosEntities();
vista = new Form1();
vista.setControlador(this);
vista.mostrarAlumnos(baseDeDatos.alumno.ToList());
vista.ShowDialog();
}
示例2: ShowForm
public void ShowForm()
{
using (Form1 form = new Form1()) {
helper.DeserializeFromXMLFile(Directory.GetCurrentDirectory() + @"\..\..\Test\XMLStore\LocationsNotChanged.xml");
form.helper = helper;
form.ShowDialog();
}
}
示例3: Execute
public override void Execute()
{
Form1 frm = new Form1();
frm.ShowDialog(Services.HostWindow.Instance);
}
示例4: Button_Click_2
private void Button_Click_2(object sender, RoutedEventArgs e)
{
LibraryManager lm=new LibraryManager();
OdysseyCloudAPIConsumer APIConsumer = new OdysseyCloudAPIConsumer();
//Se obtiene logueo de usuario
UserInfo userToAuth = APIConsumer.GetUserAuth(new UserInfo() {Nickname= "kevuo", Password = "elcharlatan"}).Result;
//Si el usuario que se retorna no es nulo
if (!userToAuth.UserId.Equals(new Guid()))
{
SessionManager.Instance.Nickname = userToAuth.Nickname;
SessionManager.Instance.Name = userToAuth.Name;
SessionManager.Instance.UserId = userToAuth.UserId;
}
//Inicializa la biblioteca de usuario
lm.InitializeLibrary();
//Importa carpeta de usuario a la biblioteca musical local
lm.ImportSongsToLibrary(@"C:\Users\Manuel\Desktop\majesco");
//Sincroniza Biblioteca con Cloud
lm.SyncUserLibrary();
Form1 principal = new Form1(lm);
this.Close();
principal.ShowDialog();
}
示例5: button1_Click
private void button1_Click(object sender, EventArgs e)
{
var f1 = new Form1();
f1.ShowDialog();
}
示例6: Form1
private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
{
Form1 frm = new Form1();
frm.MyLogin = new Form1.SetMenu(Login);
frm.ShowDialog();
}