private void OpenWindows(string Value) { switch (Value) { case "0.1": fRun FRun = new CoEVO.fRun(); FRun.MdiParent = this; FRun.Show(); break; case "0.2": break; case "0.3": Forms.fViews FViews = new CoEVO.Forms.fViews(); FViews.MdiParent = this; FViews.Show(); break; case "1.1": Forms.fHistory FHistory = new Forms.fHistory(); FHistory.MdiParent = this; FHistory.Show(); break; default: break; } }
private void bCheck_Click(object sender, EventArgs e) { try { Forms.fViews FViews = new CoEVO.Forms.fViews(); FViews.ds = this.ds; FViews.dsBindingSource = this.dsBindingSource; FViews.queueServiceBindingSource = this.fitnessHistoryBindingSource; FViews.portsBindingSource = this.portsBindingSource; //FViews.dQueueService.DataMember = "FitnessHistory"; FViews.MdiParent = this.MdiParent; FViews.Show(); //return; //FViews.queueServiceBindingSource = this.queueServiceBindingSource; } catch (Exception ex) { MessageBox.Show(ex.Message); } }