public FormEx(BOIDEnum boId) { InitializeComponent(); m_boId = boId; m_bo = BOFactory.GetBO(m_boId); m_formMode = FormMode.Ok; }
public FormEx() { InitializeComponent(); m_boId = BOIDEnum.Invalid; m_bo = null; m_formMode = FormMode.Ok; }
public SelectView_Form(Form xParentForm, SQLTable xTbl, TableDockingFormXml xTableDockingFormXml, ViewXml CurrentViewXml, xml myXml,FormMode mode) { m_mode = mode; m_ParentForm = xParentForm; this.Owner = xParentForm; this.Icon = CodeTables.Properties.Resources.SelectViewIcon; m_xml = myXml; m_CurrentViewXml = CurrentViewXml; m_tbl = xTbl; m_TableDockingFormXml = xTableDockingFormXml; InitializeComponent(); if (m_mode == FormMode.SELECT) { this.Text = lngRPM.s_SelectViewForTable.s + m_tbl.lngTableName.s; chkBoxSetAsDefault.Visible = true; this.btn_Select.Text = lngRPM.s_Select.s; this.btn_Cancel.Text = lngRPM.s_Cancel.s; } else { this.Text = lngRPM.s_DeleteViewForTable.s + m_tbl.lngTableName.s; chkBoxSetAsDefault.Visible = false; this.btn_Select.Text = lngRPM.s_Delete.s; this.btn_Cancel.Text = lngRPM.s_Close.s; } this.chkBoxSetAsDefault.Text = lngRPM.s_SelectAsDefaultView.s; lnlViewName.Text = lngRPM.s_SelectedView.s; foreach (ViewXml xViewXml in m_TableDockingFormXml.m_ViewXml) { this.rdblist_Views.Items.Add(xViewXml); } }
/// <summary> /// Opens the form. /// </summary> /// <param name="formId">The form id.</param> /// <param name="mode">The mode.</param> /// Created by SMK public void OpenForm(int formId, FormMode mode) { //this.currentFormId = formId; //if (frmList[formId] == null) // frmList[formId] = CreateForm(formId, mode); //else if (frmList[formId].IsDisposed == true || frmList[formId].IsAccessible == true) // frmList[formId] = CreateForm(formId, mode); //ShowForm(formId); switch (formId) { case Config.FORM_XSLT_MAPPING: var existXslt = new FrmXslMapping(this, mode, FileName) { Text = "Xslt transform" }; existXslt.Show(dockPanel); break; case Config.FORM_COMPPONENT_MAPPING: var lst = frmList.Where(f => f is FrmComponentMapper); int count = lst == null ? 1 : lst.Count() + 1; string name = string.Format("EVinca Proccess{0}", count); OpenForm(name, this.FileName, Config.FORM_COMPPONENT_MAPPING, mode); break; default: break; } }
public void CreateNewCourse() { Mode = FormMode.CreateNew; Course = new Course(); InitializeControls(); MdiParent = MyForms.GetForm <ParentForm>(); Show(); }
public FormReceiptArrivalCheck(int receiptTicketID, int userID) { InitializeComponent(); this.receiptTicketID = receiptTicketID; this.userID = userID; //this.submissionTicket = (from st in wmsEntities.SubmissionTicket where st.ID == submissionTicketID && st.State != "作废" select st).Single(); this.formMode = FormMode.ALTER; }
public FormReceiptArrivalCheck(int receiptTicketID, int userID, AllOrPartial allOrPartial) { InitializeComponent(); this.receiptTicketID = receiptTicketID; this.allOrPartial = allOrPartial; this.userID = userID; this.formMode = FormMode.ADD; }
private HtmlTag formForMode(FormMode mode) { var form = new FormTag("test"); mode.Modify(form); return(form); }
public FormBase(BOIDEnum boId) { InitializeComponent(); m_boId = boId; m_bo = BOFactory.GetBO(m_boId); m_formMode = FormMode.Ok; m_needCallRetProc = true; }
public void SetUp() { theFilter = MockRepository.GenerateStub<IChainFilter>(); theMode = FormMode.Ajax; theChain = new BehaviorChain(); thePolicy = new FormModePolicy(theFilter, theMode); }
public void UpdateTicket(Ticket ticket) { Mode = FormMode.Update; Ticket = ticket; ShowTicketInControls(); MdiParent = MyForms.GetForm <ParentForm>(); Show(); }
/// <summary> /// Initializes a new instance of the <see cref="FrmXslMapping"/> class. /// </summary> /// <param name="frmMode">The FRM mode.</param> /// Created by SMK public FrmXslMapping(FormMode frmMode) : base() { this.frmMode = frmMode; InitializeComponent(); Instance = this; InitValues(); }
public FormBase() { InitializeComponent(); m_boId = BOIDEnum.Invalid; m_bo = null; m_formMode = FormMode.Ok; m_needCallRetProc = true; }
public CarForm(FormMode mode, Action <Car> onCloseCallBack = null, Car car = null) { InitializeComponent(); _unitOfWork = UnitOfWork.Instance; _mode = mode; _onCloseCallBack = onCloseCallBack; _car = car ?? new Car(); }
/// <summary> /// Constructor of the Assign Variable to Mirror Field dialog /// </summary> /// <param name="frm">The main form</param> /// <param name="fields">Data table containing fields</param> /// <param name="fieldName">The field name</param> /// <param name="formMode">The form mode</param> public AssignVariableToMirrorFieldDialog(MainForm frm, DataTable fields, string fieldName, FormMode formMode) : base(frm) { InitializeComponent(); mirrorableFields = fields; lblFieldName.Text = fieldName; mode = formMode; }
public void CreateNewApplicant() { Mode = FormMode.CreateNew; Applicant = new Applicant(); InitializeControls(); MdiParent = MyForms.GetForm <ParentForm>(); Show(); }
private void tsbCancel_Click(object sender, EventArgs e) { DisableForm(); formMode = FormMode.View; this.Text = "THR"; }
public void CreateNewSprint() { Mode = FormMode.CreateNew; Sprint = new Sprint(); InitializeControls(); MdiParent = AllForms.GetForm <MainParentForm>(); Show(); }
public void SeleccionarDOT(FormMode modo, Empleado empleadoSesion) { formMode = modo; if (formMode == FormMode.insert) { this.empleadoSesion = empleadoSesion; } }
private void UserUI_Load(object sender, EventArgs e) { formMode = FormMode.View; formFilter = FormFilter.SupplierName; GetLastUser(); LoadUsers(); }
public void CreateNewTicket() { Mode = FormMode.CreateNew; Ticket = new Ticket(); InitializeControls(); MdiParent = AllForms.GetForm <ParentForm>(); Show(); }
private void btnSearchOrderPlan_Click(object sender, RoutedEventArgs e) { // _dyedOrderPlanViewModel.SearchHeader(); _dyedPlanViewModel.SearchHeader(); FormPlanMode = FormMode.Read; SwitchPlanFormMode(FormPlanMode); }
private void toolStripFilter_Click(object sender, EventArgs e) { bsResume.AddNew(); Mode = FormMode.Filter; tabControl1.SelectedTab = tabControl1.TabPages["tabPage2"]; butOk.Visible = true; butCancel.Visible = true; }
/// <summary> /// Конструктор формы редактирования интерфейсов накопителей /// </summary> public EditStorageInterfaceForm() { InitializeComponent(); _formMode = FormMode.None; _ctx = new Context(); EnDisFields(false); BindCollection(); }
public void SetUp() { theFilter = MockRepository.GenerateStub <IChainFilter>(); theMode = FormMode.Ajax; theChain = new BehaviorChain(); thePolicy = new FormModePolicy(theFilter, theMode); }
/// <summary> /// Конструктор формы редактирования должностей сотрудников /// </summary> public EditUsrPositionForm() { InitializeComponent(); EnDisFields(false); _ctx = new Context(); BindCollection(); _formMode = FormMode.None; }
private void Reset() { _mode = FormMode.AddNew; UpdateControlsUi(); _classification = new Classification(); UpdateClassificationInfoUi(); validationLabel.Visible = true; }
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { Mode = FormMode.Add; tabControl1.SelectedTab = tabControl1.TabPages["tabPage2"]; butOk.Visible = true; butCancel.Visible = true; txtID.Text = (DT.Rows.Count + 1).ToString(); }
private void tSMIEdit_Click(object sender, EventArgs e) { { this.mode = FormMode.Edit; SetFormMode(); } }
private void btnSearch_Click(object sender, RoutedEventArgs e) { var childWindowSeach = new MarkerHeaderListSearchResultsChild(_viewModel); childWindowSeach.Show(); _FormMode = FormMode.Search; SwitchFormMode(_FormMode); }
private void UserUI_Load(object sender, EventArgs e) { formMode = FormMode.View; GetLastUser(); FillCode(); LoadUsers(); }
private void vacancyFiltertoolStripButton2_Click(object sender, EventArgs e) { bsVacancy.AddNew(); Mode = FormMode.Filter; tabControl1.SelectedTab = tabControl1.TabPages["tabPage2"]; butOk.Visible = true; butCancel.Visible = true; }
private void toolStripButEdit_Click(object sender, EventArgs e) { Mode = FormMode.Edit; txtID.Enabled = false; tabControl1.SelectedTab = tabControl1.TabPages["tabPage2"]; butOk.Visible = true; butCancel.Visible = true; }
public FormAddEditUser() { InitializeComponent(); formMode = FormMode.Add; userProfile = new HM.Entities.HattrickManager.UserProfiles.User(); oAuth = new HM.ChppInterface.OAuthInterface(); bwOAuth.RunWorkerAsync(); }
/// <summary> /// Конструктор формы редактирования типов программного обеспечения /// </summary> public EditSoftwareTypeForm() { InitializeComponent(); _formMode = FormMode.None; _ctx = new Context(); EnDisFields(false); BindCollection(); }
public AddEditItemForm(ITEM item) { InitializeComponent(); _mode = FormMode.EditForm; PopulateContols(item); }
private void CompanyUI_Load(object sender, EventArgs e) { formMode = FormMode.View; Company company = companyRepository.GetById(Guid.Empty); ViewCompanyDetail(company); }
public FormAddEditUser(HMEntities.UserProfiles.User selectedUser) { InitializeComponent(); formMode = FormMode.Edit; this.userProfile = selectedUser; this.buttonTest.Enabled = true; oAuth = new HM.ChppInterface.OAuthInterface(); LoadControls(); }
public frmGenres(DbHelper db, DataRow dr, FormMode mode) : base(db, dr, mode) { InitializeComponent(); this.Load += frmGenres_Load; this.FormClosing += frmGenres_FormClosing; this.Shown += frmGenres_Shown; }
/// <summary> /// News the item XMLT form. /// </summary> /// Created by khoaht at 9:10 AM on 11/25/2011 private void NewItemXMLTForm(FormMode mode) { if (this.Controls.Find("FrmItem", true).Length == 0) { var newItem = new FrmItem(mode, xsltFile); newItem.MdiParent = this; newItem.Show(); } }
public ImportPatternsForm(string[] antnames, ISmartAntMgr ants) { iantennas = ants; //现在该窗体的模式是Import m_FormMode = FormMode.Import; InitializeComponent(); InitialNameAndAngle(antnames); }
/// <summary> /// Constructor for Grid Columns Dialog /// </summary> /// <param name="frm">The main form</param> /// <param name="fieldPage">The page containing the field</param> /// <param name="gridField">The grid's field</param> /// <param name="patternsDataView">The data view</param> /// <param name="formMode">The form mode</param> /// <param name="tempColumns">Temporary Columns</param> public GridColumnsDialog(MainForm frm, Page fieldPage, Epi.Fields.GridField gridField, DataView patternsDataView, FormMode formMode, List<GridColumnBase> tempColumns) : base(frm) { InitializeComponent(); page = fieldPage; grid = gridField; patterns = patternsDataView; mode = formMode; form = frm; gridColumns = tempColumns; }
/// <summary> /// 显示并可以修改智能天线属性 /// </summary> public InputMainAngle_for_import(SmartAntenna sa, ISmartAntMgr iants) { //当前窗体的工作模式是查看Properties m_FormMode = FormMode.Properties; InitializeComponent(); m_SA = sa; iantennas = iants; ViewSmartAntProperty(sa); }
public FrmComponentMapper(FrmMainForm frmMain, FormMode mode, string fileName) { InitializeComponent(); this.frmMain = frmMain; this.mode = mode; this.FileName = fileName; InitValues(); if (this.mode == FormMode.Open) { Open(); } }
public static bool DisplayForm(BOIDEnum boid, string key, FormMode formMode, bool isReport = false, DeleReturnProc retProc = null) { bool result = true; Form mainForm = FormManager.GetMainForm(); switch (boid) { case BOIDEnum.Country: frmCountry cty = new frmCountry(BOIDEnum.Country); cty.MdiParent = mainForm; cty.ReturnProc = retProc; cty.Show(); break; case BOIDEnum.Market: frmMarketList mkt = new frmMarketList(); mkt.MdiParent = mainForm; mkt.ReturnProc = retProc; mkt.Show(); break; case BOIDEnum.BP: frmBP bpmd = new frmBP(BOIDEnum.BP); bpmd.MdiParent = mainForm; bpmd.ReturnProc = retProc; bpmd.Show(); break; case BOIDEnum.ProductGroup: frmProductGroup frmProGrp = new frmProductGroup(); frmProGrp.MdiParent = mainForm; frmProGrp.Show(); break; case BOIDEnum.Product: frmProduct frmPro = new frmProduct(BOIDEnum.Product); frmPro.MdiParent = mainForm; frmPro.ReturnProc = retProc; frmPro.Show(); break; case BOIDEnum.Texture: frmTexture frmTxt = new frmTexture(BOIDEnum.Texture); frmTxt.MdiParent = mainForm; frmTxt.ReturnProc = retProc; frmTxt.Show(); break; case BOIDEnum.KeyWord: frmKeyWrod frmKw = new frmKeyWrod(); frmKw.MdiParent = mainForm; frmKw.ReturnProc = retProc; frmKw.Show(); break; default: break; } return result; }
public FrmItem(FormMode mode, string filename) { InitializeComponent(); mover = new Mover(this); tvLinkedSrc = new LinkedTreeview(tvSourceXML, true, NODESIZE, FRAMESIZE); tvLinkedDes = new LinkedTreeview(tvTargetXML, true, NODESIZE, FRAMESIZE); linkTrees = new LinkTree(mover, tvLinkedSrc, tvLinkedDes); moverOnTab = new Mover(tabFunclet); Funclet.FormParent = this; this.mode = mode; this.fileXSLTSavePath = filename; tvSourceXML.OnScrollBarChanged += new EVincaTree.OnScrollEventHandler(tvSourceXML_OnScrollBarChanged); tvTargetXML.OnScrollBarChanged += new EVincaTree.OnScrollEventHandler(tvTargetXML_OnScrollBarChanged); Instance = this; }
public RefEditForm(FaxDataType faxType, FormMode mode, string connectionStr, string faxNumber, string codeDesc) { InitializeComponent(); this.faxType = faxType; this.formMode = mode; this.faxNumber = faxNumber; this.codeDesc = codeDesc; this.connectionString = connectionStr; if (faxType == FaxDataType.SpamFax) { PopualteSpamData(); } else { PopulateCptyData(); } }
public frmInput(FormType formType, FormMode formMode) { InitializeComponent(); this.formType = formType; this.formMode = formMode; label1.Visible = textBox1.Visible = true; label2.Visible = textBox2.Visible = (formType != FormType.mdAspect); label3.Visible = textBox3.Visible = (formType != FormType.mdAspect); if (formMode == FormMode.mdInsert) textBox1.Text = textBox2.Text = textBox3.Text = ""; else { textBox1.Text = text1; textBox2.Text = text2; textBox3.Text = text3; } switch (formType) { case FormType.mdAspect: this.Text = (formMode == FormMode.mdInsert ? "New Aspect" : "Edit Aspect"); label1.Text = "Name:"; this.MaximumSize = this.Size = this.MinimumSize = new Size(346, 140); break; case FormType.mdAdvice: this.Text = (formMode == FormMode.mdInsert ? "New Advice" : "Edit Advice"); label1.Text = "Name:"; label2.Text = "Process:"; label3.Text = "Goal:"; this.MaximumSize = this.Size = this.MinimumSize = new Size(346, 185); break; case FormType.mdPointcut: this.Text = (formMode == FormMode.mdInsert ? "New Pointcut" : "Edit Pointcut"); label1.Text = "Process:"; label2.Text = "Task:"; label3.Text = "Condition:"; this.MaximumSize = this.Size = this.MinimumSize = new Size(346, 185); break; default: break; } }
private void SetFormMode(FormMode formMode) { _descriptionLabel.Visible = formMode == FormMode.Normal; _descriptionTextBox.Visible = formMode == FormMode.Normal; _importProgressBar.Visible = (formMode == FormMode.Importing || formMode == FormMode.RefreshingChannels); _feedBackLabel.Visible = (formMode == FormMode.Importing || formMode == FormMode.RefreshingChannels); }
private void ChangeFormMode(FormMode formMode) { txtPuerto.Sensitive = ( formMode == FormMode.Append || formMode == FormMode.Edit); txtalias.Sensitive = (formMode == FormMode.Append || formMode == FormMode.Edit); txtPuerto.Sensitive = (formMode == FormMode.Append); btnEdit.Visible = ( formMode == FormMode.Edit); btnInsert.Visible = ( formMode == FormMode.Append); }
/// <summary> /// Initializes a new instance of the <see cref="T:FormModeAttribute"/> class. /// </summary> public FormModeAttribute(FormMode method) { _method = method; }
private void SetMode(FormMode mode) { if (_formMode == mode) return; _formMode = mode; ChangeFormToMode(mode); }
private bool btnOk_Clicked(object sender, ClickedEventArgs e) { if (m_formMode == FormMode.Ok) { this.Close(); return true; } if (e.Result) { m_formMode = FormMode.Ok; btnOk.Text = "确定"; if (UpdateProc != null) { UpdateProc(this,null); } } else { } return true; }
protected override void OnKeyDown(KeyEventArgs e) { m_formMode = FormMode.Update; btnOk.Text = "更新"; base.OnKeyDown(e); }
public InputMainAngle_for_import(string[] antnames, ISmartAntMgr ants) { iantennas = ants; //现在该窗体的模式是Import m_FormMode = FormMode.Import; InitializeComponent(); int RowsNum = antnames.Length; InputMainAngle_dataGridView.Rows.Add(RowsNum); InitialNameAndAngle(antnames); }
public DialogWindow(DbHelper db, DataRow dr, FormMode mode) : this(db) { this.currentDataRow = dr; this.Mode = mode; }
/// <summary> /// Constructor /// </summary> /// <param name="session">The current session</param> /// <param name="formMode"> /// The form mode: specify if the media dialogues shall be opened /// for managing media or for media selection. /// </param> public FrmMediaTypeSelector(SessionInfo session, FormMode formMode) : this() { this.session = session; this.formMode = formMode; }