private void btnEditSGDCommand_Click(object sender, RoutedEventArgs e) { var btn = sender as Button; var c = btn.DataContext as CommandContent; listView2.SelectedItem = c; commandSetting = new TextCommandSetting(c.Direct, c.Explain, c.DetailExplain, listView2.SelectedIndex, "SGD"); commandSetting.btnEdit.IsChecked = true; commandSetting.ShowDialog(); }
private void btnAddCommand_Click(object sender, RoutedEventArgs e) { commandSetting = new TextCommandSetting(); commandSetting.btnEdit.IsChecked = true; commandSetting.ShowDialog(); }
private void btnSetting_Click(object sender, RoutedEventArgs e) { TextCommandSetting commandSetting = new TextCommandSetting("btnOdometerAdmin"); commandSetting.ShowDialog(); }