Пример #1
0
 public static ConfigClient GetInstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new ConfigClient();
     }
     if (!instance.Visible)
     {
         instance.Show();
     }
     instance.WindowState = FormWindowState.Maximized;
     instance.BringToFront();
     instance.Focus();
     return(instance);
 }
Пример #2
0
 public AssignForm(ConfigClient owner)
 {
     InitializeComponent();
     this.owner = owner;
 }
Пример #3
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(ConfigClient.GetInstance());
 }