public static Form_Board Create(Client c)
 {
     Form_Board f = new Form_Board();
     f.c = c;
     f.changed = new List<Field>();
     Form_Board.formThread = new Thread(Main);
     Form_Board.formThread.SetApartmentState(ApartmentState.STA);
     Form_Board.formThread.Start(f);
     return f;
 }
        public static Form_Board Create(Client c)
        {
            Form_Board f = new Form_Board();

            f.c                   = c;
            f.changed             = new List <Field>();
            Form_Board.formThread = new Thread(Main);
            Form_Board.formThread.SetApartmentState(ApartmentState.STA);
            Form_Board.formThread.Start(f);
            return(f);
        }
Example #3
0
 public Client()
 {
     form = Form_Board.Create(this);
     Console.Out.WriteLine("Form initialized");
 }