Beispiel #1
0
        private void simpleButtonAdd_Click(object sender, EventArgs e)
        {
            var view = new AddUpdateLD();

            view.LawDictionaryModels = LawDictionaryModels;
            view.BaseView            = this;
            view.ShowDialog(this);
        }
Beispiel #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();
            }
        }
Beispiel #3
0
 private void simpleButtonAdd_Click(object sender, EventArgs e)
 {
     var view = new AddUpdateLD();
     view.LawDictionaryModels = LawDictionaryModels;
     view.BaseView = this;
     view.ShowDialog(this);
 }
Beispiel #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();
            }
        }