public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); fillCulture(); switch (_action) { case "NEW": this.Text = this.Text + " - " + SynapseForm.GetLabel("Label.Create"); _user.ID = 0; txUserid.Text = ""; txFirstName.Text = ""; txLastName.Text = ""; cbCulture.SelectedIndex = -1; break; case "EDIT": this.Text = this.Text + " - " + SynapseForm.GetLabel("Label.Edit"); txUserid.Text = _user.UserID; txFirstName.Text = _user.FIRSTNAME; txLastName.Text = _user.LASTNAME; if (_user.CULTURE != null) { cbCulture.SelectedValue = _user.CULTURE; } else { cbCulture.SelectedIndex = -1; } break; } }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); this.WindowState = FormWindowState.Maximized; tssUser.Text = string.Format("{0} {1} ({2})", FormUser.FirstName, FormUser.LastName, FormUser.UserID); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); EntityList = RoomPicker_Entity.Load("WHERE FK_MODULE=" + this.ModuleID + " AND SITE='" + _SiteCode + "'"); updateSearchCheckboxes(); tsbOpen.Enabled = false; tsbDelete.Enabled = false; ctxOpen.Enabled = false; ctxDelete.Enabled = false; if (!AllowDelete) { tsbDelete.Enabled = false; ctxDelete.Enabled = false; tsbDelete.Visible = false; ctxDelete.Visible = false; } IList <RoomPicker_Building> _List = RoomPicker_Building.Load("WHERE SITE='" + _SiteCode + "' AND FK_MODULE=" + this.ModuleID); olvBuilding.SetObjects(_List); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); if (!_standAlone) { this.mnuMain.Visible = false; this.statusStrip.Visible = false; if (!_SplitResized) { splitContainer1.Top = splitContainer1.Top - mnuMain.Height; splitContainer1.Height = splitContainer1.Height + mnuMain.Height + statusStrip.Height; _SplitResized = true; } } else { tssUser.Text = string.Format("{0} {1} ({2})", FormUser.FirstName, FormUser.LastName, FormUser.UserID); } lbModule.Text = GlobalVariables.selectedOrigin.FriendlyName.ToString(); this.Text = GetLabel("frmReport") + " - " + lbModule.Text; tabControl1.Visible = false; tabControl1.TabPages.Clear(); listCategory(); treeReport.ExpandAll(); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(SynapseCore.Security.Tools.SecureAndTranslateMode.Secure); var Interfaces = SynapseInterface.Load(); cbInterface.Items.Clear(); foreach (SynapseInterface Interf in Interfaces.OrderBy(x => x.FriendlyName.ToString()).ToList()) { cbInterface.Items.Add(Interf); } cbInterface.DisplayMember = "FriendlyName"; //cb_Module.DisplayMember = "TECHNICALNAME"; cbInterface.ValueMember = "ID"; cbInterface.SelectedItem = cbInterface.Items[0]; txOracleHome.Text = Environment.GetEnvironmentVariable("ORACLE_HOME"); txPath.Text = Environment.GetEnvironmentVariable("PATH"); txRegistry.Text = key.GetValue("").ToString(); //string val = key.GetValue("").ToString(); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); txSiteCode.Text = "KCD"; txModuleID.Text = this.ModuleID.ToString(); roomPickerCombo.ModuleID = int.Parse(txModuleID.Text); roomPickerTree.ModuleID = int.Parse(txModuleID.Text); roomPickerFree.ModuleID = int.Parse(txModuleID.Text); roomPickerCombo.Initialize(txSiteCode.Text); roomPickerTree.Initialize(txSiteCode.Text); roomPickerFree.Initialize(txSiteCode.Text); rbEntity.Checked = (roomPickerCombo.PickerType == SynapseRoomPicker.Functionalities.GlobalVariables.PickerType.Entity); rbBuilding.Checked = (roomPickerCombo.PickerType == SynapseRoomPicker.Functionalities.GlobalVariables.PickerType.Building); rbRoom.Checked = (roomPickerCombo.PickerType == SynapseRoomPicker.Functionalities.GlobalVariables.PickerType.Room); ckNewEntity.Checked = roomPickerCombo.AllowNewEntity; ckNewBuilding.Checked = roomPickerCombo.AllowNewBuilding; ckNewRoom.Checked = roomPickerCombo.AllowNewRoom; ckNameMandatory.Checked = roomPickerCombo.RoomNameMandatory; if (ckNewRoom.Checked) { ckNameMandatory.Visible = true; } else { ckNameMandatory.Checked = true; ckNameMandatory.Visible = false; } ckSelectNew.Checked = roomPickerCombo.SelectNewAfterCreation; ckAvailable.Checked = roomPickerCombo.OnlyAvailable; ckImage.Checked = roomPickerTree.ShowImage; txEmptyLabel.Text = roomPickerCombo.EmptyMemberLabel; rbCode.Checked = (roomPickerCombo.DisplayMember == SynapseRoomPicker.Functionalities.GlobalVariables.DisplayMember.Code); rbName.Checked = (roomPickerCombo.DisplayMember == SynapseRoomPicker.Functionalities.GlobalVariables.DisplayMember.Name); //set same properties for roomPickerFree as for roomPickerTree as for roomPickerCombo roomPickerFree.PickerType = roomPickerCombo.PickerType; roomPickerFree.AllowNewEntity = roomPickerCombo.AllowNewEntity; roomPickerFree.AllowNewBuilding = roomPickerCombo.AllowNewBuilding; roomPickerFree.AllowNewRoom = roomPickerCombo.AllowNewRoom; roomPickerFree.RoomNameMandatory = roomPickerCombo.RoomNameMandatory; roomPickerFree.SelectNewAfterCreation = roomPickerCombo.SelectNewAfterCreation; roomPickerFree.OnlyAvailable = roomPickerCombo.OnlyAvailable; roomPickerTree.PickerType = roomPickerCombo.PickerType; roomPickerTree.AllowNewEntity = roomPickerCombo.AllowNewEntity; roomPickerTree.AllowNewBuilding = roomPickerCombo.AllowNewBuilding; roomPickerTree.AllowNewRoom = roomPickerCombo.AllowNewRoom; roomPickerTree.RoomNameMandatory = roomPickerCombo.RoomNameMandatory; roomPickerTree.SelectNewAfterCreation = roomPickerCombo.SelectNewAfterCreation; roomPickerTree.OnlyAvailable = roomPickerCombo.OnlyAvailable; }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); lvModule.Columns[0].Text = GetLabel("frmRequest.lvModule.colModule"); lvModule.Columns[1].Text = GetLabel("frmRequest.lvModule.colDescription"); lvModule.Columns[2].Text = GetLabel("frmRequest.lvModule.colVersion"); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); this.Icon = Properties.Resources.report_module; tssUser.Text = string.Format("{0} {1} ({2})", FormUser.FirstName, FormUser.LastName, FormUser.UserID); tssModule.Text = ""; tssModule.Image = null; }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); gb_Params.Visible = false; int totalheight = (gb_Params.Visible ? gb_Params.Height + 20 : 0) + (gb_Constant.Visible ? gb_Constant.Height + 20 : 0) + (gb_Validate.Visible ? gb_Validate.Height + 20 : 0) + 15; this.Height = totalheight; pnl_waitingvalidation.Visible = false; }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); this.IsMdiContainer = true; this.WindowState = FormWindowState.Maximized; this.BackgroundImage = Properties.Resources.Banner; this.BackgroundImageLayout = ImageLayout.Center; FirstConnection(); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); ModuleCollection = SynapseModule.Load(); AllUserCollection = SynapseUser.Load(); AllProfileCollection = SynapseProfile.Load(); initTree(); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); ckAvailable.Text = GetLabel("frmRoom.ckAvailable"); if (!_RoomNameMandatory) { lbName.Visible = false; txName.Visible = false; } displayEntity(); switch (_Mode) { case GlobalVariables.EditMode.New: //this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Create"); if (_PreSelectedEntity != 0) { cbEntity.SelectedValue = _PreSelectedEntity; cbBuilding.Select(); } else { cbEntity.SelectedIndex = -1; } if (_PreSelectedBuilding != 0) { cbBuilding.SelectedValue = _PreSelectedBuilding; txCode.Select(); } else { cbBuilding.SelectedIndex = -1; } txCode.Text = ""; txName.Text = ""; ckAvailable.Checked = true; break; case GlobalVariables.EditMode.Edit: _entity.dump(); //this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Edit"); cbEntity.SelectedValue = RoomPicker_Building.LoadByID(_entity.FK_BUILDING).FK_ENTITY; cbBuilding.SelectedValue = _entity.FK_BUILDING; txCode.Text = _entity.CODE; txName.Text = _entity.NAME; ckAvailable.Checked = _entity.AVAILABLE; break; } }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); switch (_action) { case "NEW": this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Create"); _category.ID = 0; _category.LABEL = new LabelBag(); _category.LABEL.Labels = new List <SynapseLabel>(); foreach (SynapseLanguage lang in languages) { SynapseLabel newlabel = new SynapseLabel(); newlabel.LABELID = 0; newlabel.LANGUAGE = lang.CODE; newlabel.TEXT = ""; _category.LABEL.Labels.Add(newlabel); } break; case "EDIT": this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Edit"); _category = Category.LoadByID(_categoryID); if (_category.LABEL.Labels.Count < languages.Count) { foreach (SynapseLanguage lang in languages) { if (_category.LABEL.GetLabel(lang.CODE) == null) { SynapseLabel newlabel = new SynapseLabel(); newlabel.LABELID = _category.LABEL.GetLabelID(); newlabel.LANGUAGE = lang.CODE; newlabel.TEXT = ""; newlabel.save(); _category.LABEL.Labels.Add(newlabel); } } } break; } bag.FieldName = GetLabel("frmCategory.lblBag"); bag.LblBag = _category.LABEL; bag.Visible = true; bag.Dock = DockStyle.Fill; flowLayoutPanel1.Controls.Add(bag); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); listCategory(); mnuOpen.Enabled = false; ctxOpen.Enabled = false; tsbOpen.Enabled = false; mnuDelete.Enabled = false; ctxDelete.Enabled = false; tsbDelete.Enabled = false; }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); mnuAddUserToGroup.Visible = false; mnuRemoveUserFromGroup.Visible = false; ctxAddUserToGroup.Visible = false; ctxRemoveUserFromGroup.Visible = false; olvUserGroups.EmptyListMsg = GetLabel("UserEdit.olv_GroupOfUser.EmptyMsg"); fillUsers(); fillModules(); fillGroups(); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); listReport(); //mnuOpen.Enabled = false; //ctxOpen.Enabled = false; tsbOpen.Enabled = false; //mnuDelete.Enabled = false; //ctxDelete.Enabled = false; tsbDelete.Enabled = false; tsbCopy.Enabled = false; }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { olv_GroupsOfUser.EmptyListMsg = GetLabel("UserEdit.olv_GroupOfUser.EmptyMsg"); if (ModuleCollection != null) { cb_Modules.Items.Clear(); cb_Modules.Items.Add("ALL"); foreach (SynapseModule Mod in ModuleCollection) { cb_Modules.Items.Add(Mod); } cb_Modules.SelectedIndex = 0; } base.initForm(Mode); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); tsbRun.Enabled = false; ctxRun.Enabled = false; mnuRun.Enabled = false; tsbRemove.Enabled = false; ctxRemove.Enabled = false; mnuRemove.Enabled = false; tsbAddFavorites.Enabled = false; ctxAddFavorites.Enabled = false; mnuAddFavorites.Enabled = false; ctxPaste.Enabled = false; ctxDesktopShortcut.Enabled = false; mnuDesktopShortcut.Enabled = false; ctxForceInstall.Enabled = false; mnuForceInstall.Enabled = false; tsbModules.Visible = false; tsbSecurity.Visible = false; tsbAdministration.Visible = currentUserIsOwner(); loadModules(); loadCategories(); loadFavorites(); lvModule.View = View.LargeIcon; tsbIcons.Checked = true; ctxIcons.Checked = true; mnuIcons.Checked = true; tssUser.Text = string.Format("{0} {1} ({2})", FormUser.FirstName, FormUser.LastName, FormUser.UserID); lbDetail.Text = string.Format(GetLabel("Startup.DetailFormat"), CurrentSynapse.FriendlyName, CurrentSynapse.VERSION, CurrentSynapse.VERSIONDATE); pnlDetail.TitleText = GetLabel("Startup.pnlDetail"); pnlCategories.TitleText = GetLabel("Startup.pnlCategories"); pnlFavorites.TitleText = GetLabel("Startup.pnlFavorites"); lvModule.Columns[0].Text = GetLabel("Startup.lvModule.col1"); lvModule.Columns[1].Text = GetLabel("Startup.lvModule.col2"); lvModule.Columns[2].Text = GetLabel("Startup.lvModule.col3"); ctxRemoveFavorites.Text = GetLabel("Startup.ctxRemoveFavorites"); if (this.BackColor != SystemColors.Control) { toolStrip2.BackColor = this.BackColor; } }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); //olv_Data.CellEditActivation = SynapseAdvancedControls.ObjectListView.CellEditActivateMode.None; //monthCalendar1.FirstDayOfWeek= (Day)(Helper.WeekStartDay-1); col_BackgroundNoise.IsEditable = false; col_BackNoiseDischarge.IsEditable = false; col_Date.IsEditable = false; col_Day.IsEditable = false; col_Decision.IsEditable = false; col_Dirty.IsEditable = false; col_DischargeDecl.IsEditable = false; col_MinDecl.IsEditable = false; col_MinDischargeDecl.IsEditable = false; col_NetDischarge.IsEditable = false; }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); var Modules = FormUser.Modules; var Interfaces = SynapseInterface.LoadAvailable(); if (Modules.Count > 1 || Interfaces.Count > 1) { cb_Module.Items.Clear(); foreach (SynapseModule Mod in Modules) { cb_Module.Items.Add(Mod); } foreach (SynapseInterface Interf in Interfaces) { cb_Module.Items.Add(Interf); } cb_Module.DisplayMember = "FriendlyName"; //cb_Module.DisplayMember = "TECHNICALNAME"; cb_Module.ValueMember = "ID"; cb_Module.SelectedItem = cb_Module.Items[0]; } else { if (Modules.Count == 1) { ReportOrigin.setTo(Modules[0]); this.DialogResult = DialogResult.OK; this.Close(); } if (Interfaces.Count == 1) { ReportOrigin.setTo(Interfaces[0]); this.DialogResult = DialogResult.OK; this.Close(); } } }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); pnlDate.Top = pnlValue.Top; pnlValue.Visible = false; pnlDate.Visible = false; fillColorWhat(); fillColorConvertTo(); fillColorCondition(); fillDateAdd(); if (ColorWhat != null) { cbColorWhat.SelectedValue = ColorWhat; } if (ColorColor != null) { btColorChoose.BackColor = Color.FromArgb(int.Parse(ColorColor)); } if (ColorConvertTo != null) { cbConvertTo.SelectedValue = ColorConvertTo; if (ColorConvertTo != "DATE") { txValue.Text = ColorValue; } else { cbDateAdd.SelectedValue = ColorValue.Split('#')[0]; txDateAddValue.Text = ColorValue.Split('#')[1]; } } if (ColorCondition != null) { cbCondition.SelectedValue = ColorCondition; } }
public virtual void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { bool DebugControl = false; bool ShowTestEnvironment = true; try { DebugControl = bool.Parse(ConfigurationManager.AppSettings["DebugControl"]); ShowTestEnvironment = bool.Parse(ConfigurationManager.AppSettings["ShowTestEnvironment"]); } catch (Exception ex) //ConfigurationErrorsException See http://msdn.microsoft.com/en-us/library/vstudio/system.configuration.configurationmanager.appsettings(v=vs.90).aspx { } if (SecurityEnabled) { SynapseCore.Security.Tools.SecureAndTranslate(ModuleID, FormUser, this.Controls, ref resourceManager, _debug & DebugControl, Mode); } else if ((Mode & SynapseCore.Security.Tools.SecureAndTranslateMode.Transalte) != 0) { SynapseCore.Security.Tools.SecureAndTranslate(ModuleID, FormUser, this.Controls, ref resourceManager, _debug & DebugControl, SynapseCore.Security.Tools.SecureAndTranslateMode.Transalte); } if (!this.IsMdiChild) { this.Text = "Synapse " + _CurrentSynapse.VERSION + " - " + GetLabel(this.Name); } else { this.Text = GetLabel(this.Name); } this.Icon = (Icon)Resource1.Synapse; if (SynapseCore.Database.DBFunction.FormBackColor != SystemColors.Control && ShowTestEnvironment) { this.BackColor = SynapseCore.Database.DBFunction.FormBackColor; } }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); ckAvailable.Text = GetLabel("frmEntity.ckAvailable"); switch (_Mode) { case GlobalVariables.EditMode.New: //this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Create"); txCode.Text = ""; txName.Text = ""; ckAvailable.Checked = true; break; case GlobalVariables.EditMode.Edit: _entity.dump(); //this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Edit"); txCode.Text = _entity.CODE; txName.Text = _entity.NAME; ckAvailable.Checked = _entity.AVAILABLE; break; } }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); EntityList = RoomPicker_Entity.Load("WHERE FK_MODULE=" + this.ModuleID + " AND SITE='" + _SiteCode + "'"); BuildingList = RoomPicker_Building.Load("WHERE FK_MODULE=" + this.ModuleID + " AND SITE='" + _SiteCode + "'"); if (!_RoomNameMandatory) { colName.FillsFreeSpace = false; colName.Searchable = false; colName.IsVisible = false; colCode.FillsFreeSpace = true; olvRoom.RebuildColumns(); } updateSearchCheckboxes(); tsbOpen.Enabled = false; tsbDelete.Enabled = false; ctxOpen.Enabled = false; ctxDelete.Enabled = false; if (!AllowDelete) { tsbDelete.Enabled = false; ctxDelete.Enabled = false; tsbDelete.Visible = false; ctxDelete.Visible = false; } IList <RoomPicker_Room> _List = RoomPicker_Room.Load("WHERE SITE='" + _SiteCode + "' AND FK_MODULE=" + this.ModuleID); olvRoom.SetObjects(_List); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); ckAvailable.Text = GetLabel("frmBuilding.ckAvailable"); displayEntity(); switch (_Mode) { case GlobalVariables.EditMode.New: //this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Create"); if (_PreSelectedEntity != 0) { cbEntity.SelectedValue = _PreSelectedEntity; txCode.Select(); } else { cbEntity.SelectedIndex = -1; } txCode.Text = ""; txName.Text = ""; ckAvailable.Checked = true; break; case GlobalVariables.EditMode.Edit: _entity.dump(); //this.Text = this.Text + " - " + SynapseForm.GetLabel("global.Edit"); cbEntity.SelectedValue = _entity.FK_ENTITY; txCode.Text = _entity.CODE; txName.Text = _entity.NAME; ckAvailable.Checked = _entity.AVAILABLE; break; } }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); ckOwner.Text = SynapseForm.GetLabel("frmGroup.ckOwner"); fillModule(); switch (_action) { case "NEW": this.Text = this.Text + " - " + SynapseForm.GetLabel("Label.Create"); _profile.ID = 0; cbModule.SelectedIndex = -1; txTechnicalName.Text = ""; txLevel.Text = ""; ckOwner.Checked = false; _profile.Description = new LabelBag(); _profile.Description.Labels = new List <SynapseLabel>(); foreach (SynapseLanguage lang in languages) { SynapseLabel newDescription = new SynapseLabel(); newDescription.LABELID = 0; newDescription.LANGUAGE = lang.CODE; newDescription.TEXT = ""; _profile.Description.Labels.Add(newDescription); } break; case "EDIT": this.Text = this.Text + " - " + SynapseForm.GetLabel("Label.Edit"); if (_profile.FK_ModuleID != null) { cbModule.SelectedValue = _profile.FK_ModuleID; } else { cbModule.SelectedIndex = -1; } txTechnicalName.Text = _profile.TECHNICALNAME; txLevel.Text = _profile.LEVEL.ToString(); ckOwner.Checked = _profile.IS_OWNER; if (_profile.Description.Labels.Count < languages.Count) { foreach (SynapseLanguage lang in languages) { if (_profile.Description.GetLabel(lang.CODE) == null) { SynapseLabel newlabel = new SynapseLabel(); newlabel.LABELID = _profile.Description.GetLabelID(); newlabel.LANGUAGE = lang.CODE; newlabel.TEXT = ""; newlabel.save(); _profile.Description.Labels.Add(newlabel); } } } break; } bagDescription.FieldName = GetLabel("frmGroup.gbDescription"); bagDescription.LblBag = _profile.Description; bagDescription.Visible = true; bagDescription.Dock = DockStyle.Fill; flowLayoutPanel1.Controls.Add(bagDescription); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); switch (_action) { case "NEW": this.Text = this.Text + " - " + SynapseForm.GetLabel("Label.Create"); _module.ID = 0; txPath.Text = ""; txTechnicalName.Text = ""; txVersion.Text = ""; txVersionDate.Text = ""; txCategory.Text = ""; txDevSources.Text = ""; txProdSources.Text = ""; ckActive.Checked = true; ckRequestable.Checked = false; _module.FriendlyName = new LabelBag(); _module.FriendlyName.Labels = new List <SynapseLabel>(); _module.Description = new LabelBag(); _module.Description.Labels = new List <SynapseLabel>(); foreach (SynapseLanguage lang in languages) { SynapseLabel newFriendlyName = new SynapseLabel(); newFriendlyName.LABELID = 0; newFriendlyName.LANGUAGE = lang.CODE; newFriendlyName.TEXT = ""; _module.FriendlyName.Labels.Add(newFriendlyName); SynapseLabel newDescription = new SynapseLabel(); newDescription.LABELID = 0; newDescription.LANGUAGE = lang.CODE; newDescription.TEXT = ""; _module.Description.Labels.Add(newDescription); } break; case "EDIT": this.Text = this.Text + " - " + SynapseForm.GetLabel("Label.Edit"); _module = SynapseModule.LoadByID(_moduleID); txPath.Text = _module.PATH; txTechnicalName.Text = _module.TECHNICALNAME; txVersion.Text = _module.VERSION; txVersionDate.Text = _module.VERSIONDATE; txCategory.Text = _module.MODULECATEGORY; txDevSources.Text = _module.DEVSOURCE; txProdSources.Text = _module.PRODSOURCE; ckActive.Checked = _module.IS_ACTIVE; ckRequestable.Checked = _module.IS_REQUESTABLE; if (_module.FriendlyName.Labels.Count < languages.Count) { foreach (SynapseLanguage lang in languages) { if (_module.FriendlyName.GetLabel(lang.CODE) == null) { SynapseLabel newlabel = new SynapseLabel(); newlabel.LABELID = _module.FriendlyName.GetLabelID(); newlabel.LANGUAGE = lang.CODE; newlabel.TEXT = ""; newlabel.save(); _module.FriendlyName.Labels.Add(newlabel); } } } if (_module.Description.Labels.Count < languages.Count) { foreach (SynapseLanguage lang in languages) { if (_module.Description.GetLabel(lang.CODE) == null) { SynapseLabel newlabel = new SynapseLabel(); newlabel.LABELID = _module.Description.GetLabelID(); newlabel.LANGUAGE = lang.CODE; newlabel.TEXT = ""; newlabel.save(); _module.Description.Labels.Add(newlabel); } } } break; } bagName.FieldName = GetLabel("frmModule.gbFiendlyName"); bagName.LblBag = _module.FriendlyName; bagName.Visible = true; bagName.Dock = DockStyle.Fill; flowLayoutPanel1.Controls.Add(bagName); bagDescription.FieldName = GetLabel("frmModule.gbDescription"); bagDescription.LblBag = _module.Description; bagDescription.Visible = true; bagDescription.Dock = DockStyle.Fill; flowLayoutPanel1.Controls.Add(bagDescription); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); //monthCalendar1.FirstDayOfWeek = (Day)(Helper.WeekStartDay - 1); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); tssl_User.Text = SynapseForm.FormUser.ToString(); }
public override void initForm(SynapseCore.Security.Tools.SecureAndTranslateMode Mode) { base.initForm(Mode); }