private void cdvLayout_ButtonPress(object sender, System.EventArgs e) { try { if (cboCategory.SelectedIndex == -1) { CmnFunction.ShowMsgBox(modLanguageFunction.GetMessage(6), "FMB Client", MessageBoxButtons.OK, 1); cboCategory.Focus(); return; } cdvLayout.Init(); cdvLayout.Columns.Add("Layout", 100, HorizontalAlignment.Left); cdvLayout.Columns.Add("Desc", 100, HorizontalAlignment.Left); cdvLayout.SelectedSubItemIndex = 0; //cdvLayout.SmallImageList = GlobalVariable.gIMdiForm.GetSmallIconList(); if (cboCategory.SelectedIndex == 0) { modListRoutine.ViewLayOutList(cdvLayout.GetListView, '1', cdvFactory.Text); } else if (cboCategory.SelectedIndex == 1) { modListRoutine.ViewUDR_GroupList(cdvLayout.GetListView, '1'); } cdvLayout.AddEmptyRow(1); } catch (Exception ex) { CmnFunction.ShowMsgBox("frmFMBSetupDefaultLayout.cdvLayout_ButtonPress()" + "\r\n" + ex.Message, "FMB Client", MessageBoxButtons.OK, 1); } }
private void cdvFactory_ButtonPress(object sender, System.EventArgs e) { try { cdvFactory.Init(); cdvFactory.Columns.Add("Factory", 100, HorizontalAlignment.Left); cdvFactory.Columns.Add("Desc", 100, HorizontalAlignment.Left); cdvFactory.SelectedSubItemIndex = 0; //cdvFactory.SmallImageList = GlobalVariable.gIMdiForm.GetSmallIconList(); //WIPLIST.ViewFactoryList(cdvFactory.GetListView, '1',null); cdvFactory.AddEmptyRow(1); } catch (Exception ex) { CmnFunction.ShowMsgBox("frmFMBSetupResourceImage.cdvFactory_ButtonPress()" + "\r\n" + ex.Message, "FMB Client", MessageBoxButtons.OK, 1); } }