private void menuEdit_Click(object sender, RoutedEventArgs e) { if (dgObject.SelectedItem != null) { TB_PROJECT proj = dgObject.SelectedItem as TB_PROJECT; frmRatioEdit frm = new frmRatioEdit(proj); frm.ShowDialog(); } }
private void menu_projectratio_Click(object sender, RoutedEventArgs e) { frmRatioEdit frm = new frmRatioEdit(); frm.ShowDialog(); }