void BtnHisitory_Click(object sender, EventArgs e) { if (WinHisitory.isHave == false) { history = new WinHisitory(Lync); history.Show(); } //modify by 00327190 2015/7/14 如果已经打开,再次按此按钮则显示画面 (Focus是被覆盖的情况,ShowWindow是最小化后显示的情况) //Click the button to show the window again if the window was opened already else { Window frm = history; frm.Focus(); //获取该界面句柄 //Get handle of the interface IntPtr hwnd = new WindowInteropHelper(history).Handle; //显示窗体 //show the window ShowWindow(hwnd, 1); } }
public WinHistoryViewModel(WinHisitory window) { winHisitory = window; RefreshCommand = new DelegateCommand(RefreshCommandProcess); ClearCommand = new DelegateCommand(ClearCommandProcess); }
int count = 100; //modify by 00327190 2015/7/13 本来是200条一页 public WinHistoryViewModel(WinHisitory window) { winHisitory = window; RefreshCommand = new DelegateCommand(RefreshCommandProcess); ClearCommand = new DelegateCommand(ClearCommandProcess); }