Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
        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;
        }
Exemplo n.º 7
0
        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));
        }
Exemplo n.º 8
0
 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;
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 10
0
        public frmAna()
        {
            InitializeComponent();

            SkinHelper.InitSkinGallery(ribbonGalleryBarItem1, true);

            this.Text = "Oto Sanayi Kurumsal";

            MaviElmasWpf.UC_AnalogSaat saa = new MaviElmasWpf.UC_AnalogSaat();
            elementHost1.Child = saa;
        }
Exemplo n.º 11
0
 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);
 }
Exemplo n.º 12
0
        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));
        }
Exemplo n.º 13
0
        /// <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;
        }
Exemplo n.º 14
0
 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));
     }
 }
Exemplo n.º 15
0
    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();
    }
Exemplo n.º 16
0
 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));
     }
 }
Exemplo n.º 17
0
        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;
        }
Exemplo n.º 18
0
    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));
        }
    }
Exemplo n.º 19
0
 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();
     }
 }
Exemplo n.º 20
0
 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;
 }
Exemplo n.º 21
0
 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();
     }
 }
Exemplo n.º 22
0
 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();
     }
 }
Exemplo n.º 23
0
        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());
        }
Exemplo n.º 24
0
        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));
        }
Exemplo n.º 25
0
 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();
     }
 }
Exemplo n.º 26
0
        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"];
        }
Exemplo n.º 27
0
        //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();
            }
        }
Exemplo n.º 28
0
 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();
     }
 }
Exemplo n.º 29
0
 public MainForm(bool showAppearancePage)
 {
     InitializeComponent();
     if (showAppearancePage)
     {
         SkinHelper.InitSkinGallery(ribbonGallerySkins, true);
     }
     else
     {
         this.ribbonControl1.Pages.Remove(appearanceRibbonPage);
     }
 }
Exemplo n.º 30
0
        public MainContainer()
        {
            InitializeComponent();

            ////Set Skin
            //TopLeftFixed.BackgroundImage = CustomSkinMainContainer.TopLeftFixed;
            //TopRigthFixed.BackgroundImage = CustomSkinMainContainer.TopRigthFixed;
            //TopMiddleFluid.BackgroundImage = CustomSkinMainContainer.TopMiddleFluid;

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }