private void btnUpdate_Click(object sender, EventArgs e) { CategoryPresenter presenter = new CategoryPresenter(this); VaildateUserInput ValidateUser = new VaildateUserInput(); presenter.WriteFile(FileText, PasswordText, EmailText, CityText); if (!ValidateUser.ValidateInput(FileText, StateText, PasswordText, EmailText)) { MessageBox.Show(("Must contain a value"), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } // Error Messages for category form string messageType = presenter.message; switch (messageType) { case "saved": MessageBox.Show("Settings Saved"); break; case "noExist": MessageBox.Show("Input file does not exist"); break; case "wrongFile": MessageBox.Show("Please select the correct file"); break; } ScheduleForm schedule = new ScheduleForm(); schedule.chkSelect.Items.Add(FileText); schedule.Show(); }
public frmAddCategory(CategoryPresenter preCategory, Model.CATEGORY obj) { this.preCategory = preCategory; this.obj = obj; InitializeComponent(); edtCategoryName.Text = obj.CATEGORY_NAME; edtCategoryDescription.Text = obj.DESCRIPTION; }
private void CategoryForm_Load(object sender, EventArgs e) { CategoryPresenter presenter = new CategoryPresenter(this); FileList = new List <string>(); StateList = new List <string>(); presenter.GetCategories(); presenter.GetStates(); }
private void cboState_SelectedIndexChanged(object sender, EventArgs e) { CategoryPresenter presenter = new CategoryPresenter(this); CityList = new List <string>(); string StateText = cboState.SelectedItem.ToString(); string FileText = cboCategory.SelectedItem.ToString(); presenter.GetCity(StateText); }
public frmDelete() { InitializeComponent(); categoriesPresenter = new CategoriesPresenter(this); productGroupsPresenter = new ProductGroupsPresenter(this); productPresenter = new ProductPresenter(this); productsPresenter = new ProductsPresenter(this); productGroupPresenter = new ProductGroupPresenter(this); categoryPresenter = new CategoryPresenter(this); }
public frmCategory() { InitializeComponent(); preCategory = new CategoryPresenter(this); GridView gridView = gridCategory.FocusedView as GridView; foreach (GridColumn col in gridView.Columns) { col.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;// .Settings.AutoFilterCondition = AutoFilterCondition.Contains; } }
public frmCategory() { InitializeComponent(); preCategory = new CategoryPresenter(this); GridView gridView = gridCategory.FocusedView as GridView; foreach (GridColumn col in gridView.Columns) { col.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains; } gridView.GroupPanelText = "Thả một tiêu đề ở đây để nhóm thông tin"; gridView.Columns["CATEGORY_CODE"].SortOrder = DevExpress.Data.ColumnSortOrder.Descending; }
public UC_UCUI_Master_Category_UC_Category() { this._presenter = new CategoryPresenter(this); }
public frmAddCategory(CategoryPresenter preCategory, Form beforeForm) { this.preCategory = preCategory; this.beforeForm = beforeForm; InitializeComponent(); }
public frmAddCategory(CategoryPresenter preCategory) { this.preCategory = preCategory; InitializeComponent(); }
public frmAddCatogory() { InitializeComponent(); categoryPresenter = new CategoryPresenter(this); }