Example #1
0
        private void AddDocs()
        {
            AdminAddDialog addDialog = new AdminAddDialog();

            addDialog.ShowDialog();

            if (addDialog.DialogResult == true)
            {
                if (!string.IsNullOrEmpty(repo.InsertDocument(addDialog.Entity)))
                {
                    GetDocs();
                }
            }
        }
Example #2
0
        private void AddDocs()
        {
            AdminAddDialog addDialog = new AdminAddDialog();

            addDialog.ShowDialog();

            if (addDialog.DialogResult == true)
            {
                if (!string.IsNullOrEmpty(repo.InsertDocument(addDialog.Entity)))
                {
                    GetDocs();
                }
            }
        }