Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            comm _com = new comm();
            Drawing _drawing = new Drawing(_com);

            Thread threadCom = new Thread(_com.startCom);

            threadCom.Start();

            Application.Run(_drawing);
        }
Example #2
0
 public Drawing(comm _com)
 {
     InitializeComponent();
     this._com = _com;
 }