コード例 #1
0
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     OperatorEditUI opEdit = new OperatorEditUI();
     opEdit.IsInsert = true;
     if (opEdit.ShowDialog() == true)
     {
         LoadData();
     }
 }
コード例 #2
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            OperatorEditUI opEdit = new OperatorEditUI();

            opEdit.IsInsert = true;
            if (opEdit.ShowDialog() == true)
            {
                LoadData();
            }
        }
コード例 #3
0
 private void btnEidt_Click(object sender, RoutedEventArgs e)
 {
     Operator op = (Operator)gridOperator.SelectedItem;
     if (op == null)
     {
         MessageBox.Show("请选择要编辑的对象!");
         return;
     }
     OperatorEditUI EditUI = new OperatorEditUI();
     EditUI.IsInsert=false;
     EditUI.EditId=op.Id;
     if (EditUI.ShowDialog() == true)
     {
         LoadData();
     }
 }
コード例 #4
0
        private void btnEidt_Click(object sender, RoutedEventArgs e)
        {
            Operator op = (Operator)gridOperator.SelectedItem;

            if (op == null)
            {
                MessageBox.Show("请选择要编辑的对象!");
                return;
            }
            OperatorEditUI EditUI = new OperatorEditUI();

            EditUI.IsInsert = false;
            EditUI.EditId   = op.Id;
            if (EditUI.ShowDialog() == true)
            {
                LoadData();
            }
        }