コード例 #1
0
ファイル: ibrowser3Context.cs プロジェクト: no10pc/iBrowser
 partial void DeleteMainmenu(Mainmenu instance);
コード例 #2
0
ファイル: ibrowser3Context.cs プロジェクト: no10pc/iBrowser
 partial void InsertMainmenu(Mainmenu instance);
コード例 #3
0
ファイル: ibrowser3Context.cs プロジェクト: no10pc/iBrowser
 partial void UpdateMainmenu(Mainmenu instance);
コード例 #4
0
ファイル: MainViewModel.cs プロジェクト: no10pc/iBrowser
        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;
        }