public static RtCallPeationFrm RTCallfrm = null;//初始化的时候窗体对象赋值
 public RtCallPeationFrm()
 {
     InitializeComponent();
     #region
     this.SetStyle(ControlStyles.ResizeRedraw |
                   ControlStyles.OptimizedDoubleBuffer |
                   ControlStyles.AllPaintingInWmPaint, true);
     this.UpdateStyles();
     _context  = SynchronizationContext.Current;
     RTCallfrm = this;
     #endregion
     PatientList();
 }
Beispiel #2
0
 /// <summary>
 /// 返回
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void butReturn_Click(object sender, EventArgs e)
 {
     try
     {
         Form1.pCurrentWin.panel_MainFrm.Controls.Clear();
         RtCallPeationFrm rtcpf = new RtCallPeationFrm();
         rtcpf.Dock = DockStyle.Fill;
         Form1.pCurrentWin.panel_MainFrm.Controls.Add(rtcpf);
     }
     catch (Exception ex)
     {
         Log4net.LogHelper.Error("返回按钮错误信息:" + ex.Message);
     }
 }