Пример #1
0
        private void simpleButtonAdd_Click(object sender, EventArgs e)
        {
            var view = new AddUpdateLD();

            view.LawDictionaryModels = LawDictionaryModels;
            view.BaseView            = this;
            view.ShowDialog(this);
        }
Пример #2
0
        private void simpleButtonUpdate_Click(object sender, EventArgs e)
        {
            if (SelectedModel == null)
            {
                return;
            }

            var view = new AddUpdateLD();

            view.IsUpdate            = true;
            view.LawDictionaryModel  = SelectedModel;
            view.LawDictionaryModels = LawDictionaryModels;
            view.ShowDialog(this);
            if (view.IsSave)
            {
                ShowAjax();
                writeData();
                CloseAjax();
            }
        }
Пример #3
0
 private void simpleButtonAdd_Click(object sender, EventArgs e)
 {
     var view = new AddUpdateLD();
     view.LawDictionaryModels = LawDictionaryModels;
     view.BaseView = this;
     view.ShowDialog(this);
 }
Пример #4
0
        private void simpleButtonUpdate_Click(object sender, EventArgs e)
        {
            if (SelectedModel == null) return;

            var view = new AddUpdateLD();
            view.IsUpdate = true;
            view.LawDictionaryModel = SelectedModel;
            view.LawDictionaryModels = LawDictionaryModels;
            view.ShowDialog(this);
            if (view.IsSave)
            {
                ShowAjax();
                writeData();
                CloseAjax();
            }
        }