private void ChatUI_Load(object sender, EventArgs e) { // test other ui // new ui_login().Show(); ui_temp = this; show_test = new ShowTest(set_test); }
/// <summary> /// on test to do grid double click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TestToDoGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { try { //open window var win = new ShowTest((Test)TestToDoGrid.SelectedItem); win.ShowDialog(); Refresh(); } catch { // ignored } }
private void ShowTest_Click(object sender, EventArgs e) { ShowTest st = new ShowTest(soldeir.SoldierDataID); st.ShowDialog(); }