protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!CallBack_GridRuleDateRanges_MasterRulesView.IsCallback && !CallBack_GridRuleParameters_MasterRulesView.IsCallback) { Page MasterManagersPage = this; Ajax.Utility.GenerateMethodScripts(MasterManagersPage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); } }
protected void Page_Load(object sender, EventArgs e) { GetDayOfWeek(); Page RuleGeneratorPage = this; Ajax.Utility.GenerateMethodScripts(RuleGeneratorPage); ScriptHelper.InitializeScripts(this.Page, typeof(scripts)); SkinHelper.InitializeSkin(this.Page); FillHF(sender, e); GetLocalResources(); }
public UpdateSkinViewModel() { SkinColorType skin = SkinHelper.DefaultSkinColor; if (ConfigurationMaster.ContainsKey(SkinHelper.SkinColorConfigurationKey)) { skin = SkinHelper.StringToSkinColorType(ConfigurationMaster.Get(SkinHelper.SkinColorConfigurationKey)); } DefaultColorType = skin; }
public BaseTMSkillItem() { try { this.Profile = (SuperSkillProfile)SkillProfileHelper.Supers[SkillSettings.CCProfileName]; this.Skin = ((TMSS4Skin)SkinHelper.getSkin(SkillSettings.CCSkinName)).SkinName; } catch (Exception e) { SkillSettings.DoTell("Exception in attempting to set profile: " + e); } m_AutoGenerated = false; }
public BaseTMSkillItem(int itemid) : base(itemid) { try { this.Profile = (SuperSkillProfile)SkillProfileHelper.Supers[SkillSettings.CCProfileName]; this.Skin = ((TMSS4Skin)SkinHelper.getSkin(SkillSettings.CCSkinName)).SkinName; } catch (Exception e) { SkillSettings.DoTell("Exception in attempting to set profile: " + e); } this.ItemID = itemid; }
private void LoginForm_FormClosing(object sender, FormClosingEventArgs e) { var pname = Process.GetProcessesByName("spartan"); if (pname.Length <= 0) { return; } SkinHelper.ShowMessage(@"You need to close the game first!"); e.Cancel = true; }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); Page LeaveBudgetPage = this; Ajax.Utility.GenerateMethodScripts(LeaveBudgetPage); this.GetAxises_LeaveBudget(); this.GetLeaveBudget_LeaveBudget(this.Fill_cmbYear_LeaveBudget()); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); }
public MemberListForm() { InitializeComponent(); SkinHelper.InitSkinPopupMenu(skins); repBirthDate.MaxValue = new DateTime(DateTime.Today.Year - 18, DateTime.Today.Month, DateTime.Today.Day); _repositoryCate = new CategoryMemberRepository(); _repository = new MemberRepository(); _manistger = new MemberManager(_repository); bitAll.PerformClick(); memberMessage = SenMemberSelected; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack || HttpContext.Current.Request.QueryString.AllKeys.Contains("OME")) { this.InitReportViewer_ReportViewer(); this.GetReport_ReportViewer(); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); } this.StiReportViewer.ReportExport += StiReportViewer_ReportExport; }
public frmAna() { InitializeComponent(); SkinHelper.InitSkinGallery(ribbonGalleryBarItem1, true); this.Text = "Oto Sanayi Kurumsal"; MaviElmasWpf.UC_AnalogSaat saa = new MaviElmasWpf.UC_AnalogSaat(); elementHost1.Child = saa; }
void btnImportStyles_Click(object sender, EventArgs e) { if (uploader.HasFile) { if (uploader.FileName.EndsWith(".xml")) { SkinHelper.ImportStyles(uploader.FileContent, siteSettings.SiteGuid); } } WebUtils.SetupRedirect(this, Request.RawUrl); }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); Page CalendarPage = this; Ajax.Utility.GenerateMethodScripts(CalendarPage); this.GetAxises_Calendar(); this.InitializePage_Calendar(); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); }
/// <summary> /// 加载皮肤到控件 /// </summary> /// <param name="RGBISkin"></param> void InitialSkin(DevExpress.XtraBars.RibbonGalleryBarItem RGBISkin) { RgbiSkin = RGBISkin; SkinHelper.InitSkinGallery(RgbiSkin); UserLookAndFeel.Default.SetSkinStyle(defaultSkinName);//设置主题样式 RgbiSkin.Caption = "主题:" + defaultSkinName; RgbiSkin.GalleryItemClick += rgbiSkin_GalleryItemClick; }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!this.CallBack_trvRulesTemplates_RulesGroupUpdate.CausedCallback && !this.CallBack_trvRules_RulesGroupUpdate.CausedCallback) { Page RulesGroupUpdatePage = this; Ajax.Utility.GenerateMethodScripts(RulesGroupUpdatePage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); } }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); Page MasterCalculationRangePage = this; Ajax.Utility.GenerateMethodScripts(MasterCalculationRangePage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.CheckCalculationRangeLoadAccess_MasterCalculationRange(); }
protected void Page_Load(object sender, EventArgs e) { if (!CallBack_trvDataAccessLevelsSource_MultiLevelsDataAccessLevels.IsCallback && !CallBack_trvDataAccessLevelsTarget_MultiLevelsDataAccessLevels.IsCallback) { Page MultiLevelsDataAccessLevelsPage = this; Ajax.Utility.GenerateMethodScripts(MultiLevelsDataAccessLevelsPage); this.DataAccessLevelsLoadonDemandExceptionsHandler(HttpContext.Current.Request.QueryString); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); } }
public frmBase(DataTable DTab, long _UserID) { MenuList = DTab; UserID = _UserID; InitializeComponent(); SkinHelper.InitSkinGallery(ribbonGalleryBarItem1, true); UserLookAndFeel.Default.SkinName = "Blue"; this.ribbon.MdiMergeStyle = DevExpress.XtraBars.Ribbon.RibbonMdiMergeStyle.Default; this.ribbon.Minimized = true; }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!CallBack_GridRequestRefrence_RequestRefrence.IsCallback) { Page RequestRefrence = this; Ajax.Utility.GenerateMethodScripts(RequestRefrence); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); } }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!CallBack_cmbMachineTypes_Machines.IsCallback && !CallBack_GridMachines_Machines.IsCallback && !CallBcak_cmbControlStations_Machines.IsCallback) { Page MachinesPage = this; Ajax.Utility.GenerateMethodScripts(MachinesPage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.CheckMachinesLoadAccess_Machines(); } }
public frmMain() { InitializeComponent(); SkinHelper.InitSkinGallery(rgbiSkins); lstForms = new List <Form>(); this.Icon = Properties.Resources.network; btnCurrentDate.Caption = Framework.Date.Methods.CurrentShamsiDate(); rbtnDeviceMap.Visibility = (GlobalService.LoginUser.User_ID == 100 || GlobalService.LoginUser.User_ID == 3361) ? BarItemVisibility.Always : BarItemVisibility.Never; }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!this.CallBack_trvDepartmentsIntroduction_DepartmentIntroduction.IsCallback) { Page DepartmentsPage = this; Ajax.Utility.GenerateMethodScripts(DepartmentsPage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.CheckDepartmentsLoadAccess_Departments(); } }
protected void Page_Load(object sender, EventArgs e) { if (!CallBack_cmbValue_R16_DialogPersonnelExtraInformation.IsCallback && !CallBack_cmbValue_R17_DialogPersonnelExtraInformation.IsCallback && !CallBack_cmbValue_R18_DialogPersonnelExtraInformation.IsCallback && !CallBack_cmbValue_R19_DialogPersonnelExtraInformation.IsCallback && !CallBack_cmbValue_R20_DialogPersonnelExtraInformation.IsCallback) { RefererValidationProvider.CheckReferer(); Page PersonnelExtraInformationPage = this; Ajax.Utility.GenerateMethodScripts(PersonnelExtraInformationPage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.CheckPersonnelReserveFieldsLoadAccess_PersonnelExtraInformation(); } }
private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { // var pname = Process.GetProcessesByName("spartan"); if (pname.Length > 0) { SkinHelper.ShowMessage(@"Game already runing! Close it first."); return; } } catch (Exception) { // } try { //Only one instance if (AlreadyRunning()) { return; } } catch (Exception) { // } //Load UserConfig try { if (File.Exists(UserConfigFilePath)) { UserConfig = UserConfig.Load(UserConfigFilePath); string lang = UserConfig.GameLanguage.ToString(); lang = $"{lang.Substring(0, 2)}-{lang.Substring(2)}"; System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(lang); } } catch (Exception) { // } //Start Gui Application.Run(new MainForm()); }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); Page CultureYearMonthForm = this; Ajax.Utility.GenerateMethodScripts(CultureYearMonthForm); this.Fill_cmbYear_CultureYearMonth(); this.Fill_cmbMonth_CultureYearMonth(); this.SetReportParameterID_CultureYearMonth(); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!CallBack_GridIllness_Illness.IsCallback) { Page IllnessesPage = this; Ajax.Utility.GenerateMethodScripts(IllnessesPage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.CheckIllnessesLoadAccess_Illness(); } }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); Page PasswordChangePage = this; Ajax.Utility.GenerateMethodScripts(PasswordChangePage); this.CheckPasswordChangeLoadAccess_PasswordChange(); this.GetCurrentUser_PasswordChange(); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.hfOpenWithLoginPage_PasswordChange.Value = Request.QueryString["reloadByLoginPage"]; }
//internal class SelectedPreCardProxy //{ // public Boolean Active { get; set; } // public Boolean Justification { get; set; } // public string PreCardCode { get; set; } // public string PreCardName { get; set; } // public int PreCardType { get; set; } // public Boolean Daily { get; set; } // public Boolean Hourly { get; set; } // public Boolean Monthly { get; set; } //} protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!CallBack_cmbPreCardType_PreCard.IsCallback && !CallBack_GridPreCards_PreCard.IsCallback && !CallBack_trvPrecardAccessLevels_PreCard.IsCallback) { Page PreCardPage = this; Ajax.Utility.GenerateMethodScripts(PreCardPage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.CheckPrecardsLoadAccess_PraCard(); } }
protected void Page_Load(object sender, EventArgs e) { RefererValidationProvider.CheckReferer(); if (!CallBack_GridAccessGroups_AccessGroups.IsCallback && !CallBack_trvAccessLevel_AccessGroups.IsCallback) { Page AccessGroupsPage = this; Ajax.Utility.GenerateMethodScripts(AccessGroupsPage); SkinHelper.InitializeSkin(this.Page); ScriptHelper.InitializeScripts(this.Page, typeof(Scripts)); this.CheckAccessGroupsLoadAccess_AccessGroups(); } }
public MainForm(bool showAppearancePage) { InitializeComponent(); if (showAppearancePage) { SkinHelper.InitSkinGallery(ribbonGallerySkins, true); } else { this.ribbonControl1.Pages.Remove(appearanceRibbonPage); } }
public MainContainer() { InitializeComponent(); ////Set Skin //TopLeftFixed.BackgroundImage = CustomSkinMainContainer.TopLeftFixed; //TopRigthFixed.BackgroundImage = CustomSkinMainContainer.TopRigthFixed; //TopMiddleFluid.BackgroundImage = CustomSkinMainContainer.TopMiddleFluid; //Configure Fonts SkinHelper.SetFont(Controls); }