Пример #1
0
        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();
        }
Пример #2
0
 private void btnAddCommand_Click(object sender, RoutedEventArgs e)
 {
     commandSetting = new TextCommandSetting();
     commandSetting.btnEdit.IsChecked = true;
     commandSetting.ShowDialog();
 }
Пример #3
0
        private void btnSetting_Click(object sender, RoutedEventArgs e)
        {
            TextCommandSetting commandSetting = new TextCommandSetting("btnOdometerAdmin");

            commandSetting.ShowDialog();
        }