private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     OperatorEditiUI editUI = new OperatorEditiUI();
     editUI.IsInsert = true;
     if (editUI.ShowDialog() == true)
     {
         LoadData();
     }
 }
Example #2
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            OperatorEditiUI editUI = new OperatorEditiUI();

            editUI.IsInsert = true;
            if (editUI.ShowDialog() == true)
            {
                LoadData();
            }
        }
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            Operator op = (Operator)gridOperators.SelectedItem;
            if (op == null)
            {
                MessageBox.Show("没有选中任何行!");
                return;
            }

            OperatorEditiUI editUI = new OperatorEditiUI();
            editUI.IsInsert = false;
            editUI.EditingId = op.Id;
            if (editUI.ShowDialog() == true)
            {
                LoadData();
            }
        }
Example #4
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            Operator op = (Operator)gridOperators.SelectedItem;

            if (op == null)
            {
                MessageBox.Show("没有选中任何行!");
                return;
            }

            OperatorEditiUI editUI = new OperatorEditiUI();

            editUI.IsInsert  = false;
            editUI.EditingId = op.Id;
            if (editUI.ShowDialog() == true)
            {
                LoadData();
            }
        }