Ejemplo n.º 1
0
        private void 导入OToolStripButton_Click(object sender, EventArgs e)
        {
            OperationInfoEditForm form = new OperationInfoEditForm();

            //form.BaseDirectory = Setting.GnsserConfig.CurrentProject.ParamDirectory;
            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.Entity.Add(form.Entity);
                EntityToUi();
                this.IsChangeSaved = false;

                this.SaveChanges();
            }
        }
Ejemplo n.º 2
0
        private void EditCurrent()
        {
            var obj = Geo.Utils.DataGridViewUtil.GetSelectedObject <OperationInfo>(this.dataGridView1);

            if (obj == null)
            {
                MessageBox.Show("请选中后再试!");
                return;
            }

            OperationInfoEditForm form = new OperationInfoEditForm(obj);

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                EntityToUi();

                this.IsChangeSaved = false;
                //this.Object.Add(form.Object);
                this.SaveChanges();
            }
        }