private void LoadSettings()
 {
     settings = UserAccount.CurrentGroup.Settings;
     chkNotificationsEanbled.Checked = settings.OrdersNotifyEnabled;
     chkBuyOrders.Checked = settings.OrdersNotifyBuy;
     chkSellOrders.Checked = settings.OrdersNotifySell;
 }
        private void ReportStyleSettings_Load(object sender, EventArgs e)
        {
            _settings = UserAccount.CurrentGroup.Settings;

            txtColHeaderFont.Text = _settings.Rpt_ColHeaderFont.ToString();
            txtDataFont.Text = _settings.Rpt_DataFont.ToString();
            txtRowHeaderFont.Text = _settings.Rpt_RowHeaderFont.ToString();
            txtTitleFont.Text = _settings.Rpt_TitleFont.ToString();

            chkAltRowEnabled.Checked = _settings.Rpt_AltRowInUse;
            chkSectHeaderRowBold.Checked = _settings.Rpt_SectionHeaderFont.Bold;
            chkSectHeaderRowUnderline.Checked = _settings.Rpt_SectionHeaderFont.Underline;

            btnAltRowBackgroundCol.BackColor = _settings.Rpt_AltRowBackColour;
            btnAltRowTextCol.BackColor = _settings.Rpt_AltRowTextColour;
            btnBackgroundCol.BackColor = _settings.Rpt_DataBackColour;
            btnColHeaderBackgroundCol.BackColor = _settings.Rpt_ColHeaderBackColour;
            btnColHeaderTextCol.BackColor = _settings.Rpt_ColHeaderTextColour;
            btnNegValTextCol.BackColor = _settings.Rpt_NegDataTextColour;
            btnDangerValTextCol.BackColor = _settings.Rpt_DangerDataTextColour;
            btnWarningValTextCol.BackColor = _settings.Rpt_WarningDataTextColour;
            btnGoodValTextCol.BackColor = _settings.Rpt_GoodDataTextColour;
            btnRowHeaderBackgroundCol.BackColor = _settings.Rpt_RowHeaderBackColour;
            btnRowHeaderTextCol.BackColor = _settings.Rpt_RowHeaderTextColour;
            btnTextCol.BackColor = _settings.Rpt_DataTextColour;
            btnRptTitleBackCol.BackColor = _settings.Rpt_TitleBackColour;
            btnRptTitleTextCol.BackColor = _settings.Rpt_TitleTextColour;

            SetEnabled();

            if (System.IO.File.Exists(_settings.Rpt_LogoFile))
            {
                imgLogo.Image = Image.FromFile(_settings.Rpt_LogoFile);
            }
            else
            {
                imgLogo.Image = null;
            }
        }
 public CourierSettings()
 {
     InitializeComponent();
     _settings = UserAccount.CurrentGroup.Settings;
 }
 /// <summary>
 /// Initialise the settings object based upon the current report group ID
 /// </summary>
 private void InitSettings()
 {
     EMMADataSet.RptGroupSettingsDataTable settingsTable = new EMMADataSet.RptGroupSettingsDataTable();
     lock (rptGroupSettingsTableAdapter)
     {
         rptGroupSettingsTableAdapter.FillByID(settingsTable, _id);
     }
     if (settingsTable.Count > 0)
     {
         XmlDocument settingsDoc = new XmlDocument();
         settingsDoc.LoadXml(settingsTable[0].Settings);
         _settings = new ReportGroupSettings(settingsDoc);
     }
     else
     {
         _settings = new ReportGroupSettings(_id);
     }
 }