Beispiel #1
0
 partial void DeleteMainmenu(Mainmenu instance);
Beispiel #2
0
 partial void InsertMainmenu(Mainmenu instance);
Beispiel #3
0
 partial void UpdateMainmenu(Mainmenu instance);
Beispiel #4
0
        private void SaveMenuCommandAction()
        {
            if (string.IsNullOrEmpty(this.InputScreenName))
            {
                MessageBox.Show("组名不能为空");
                return;
            }

            Mainmenu screen = new Mainmenu();
            screen.Name = this.InputScreenName;
            screen.Desc = this.InputScreenDesc;

            _dataContext.Mainmenu.InsertOnSubmit(screen);
            _dataContext.SubmitChanges();

            MessageBox.Show("添加成功");
            this.Mainmenus.Add(screen);
            this.InputScreenName = string.Empty;
            this.InputScreenDesc = string.Empty;
        }