private void UserControlPanelBtn_Click(object sender, RoutedEventArgs e)//avab "User control panel" aknat { UserControlPanel ucp = new UserControlPanel(); ucp.Show(); this.Close(); }
private void CancelBtn_Click(object sender, RoutedEventArgs e)//paneb aknat kinni { if (TValues.edit_type.Equals("user")) { UserControlPanel i = new UserControlPanel(); i.Show(); this.Close(); } else if (TValues.edit_type.Equals("book")) { AdminBooks i = new AdminBooks(); i.Show(); this.Close(); } }