Exemplo n.º 1
0
 private void WriteUserSettings()
 {
    try
    {
       Sempra.Ops.IniFile iniFile = new Sempra.Ops.IniFile(FileNameUtils.GetUserIniFileName(settingsDir));
       iniFile.WriteValue(FORM_NAME, "Top", this.Top);
       iniFile.WriteValue(FORM_NAME, "Left", this.Left);
    }
    catch (Exception error)
    {
       XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
              "Error CNF-209 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
            FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
 }
Exemplo n.º 2
0
 private void WriteUserSettings()
 {
     try
     {
         Sempra.Ops.IniFile iniFile = new Sempra.Ops.IniFile(FileNameUtils.GetUserIniFileName(settingsDir));
         iniFile.WriteValue(FORM_NAME, "Top", this.Top);
         iniFile.WriteValue(FORM_NAME, "Left", this.Left);
     }
     catch (Exception error)
     {
         XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
                             "Error CNF-298 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
                             FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 3
0
 private void WriteUserSettings()
 {
    try
    {
       gridViewTemplateList.SaveLayoutToXml(settingsDir + "\\" + TEMPLATE_LIST_GRID_SETTINGS);
       Sempra.Ops.IniFile iniFile = new Sempra.Ops.IniFile(FileNameUtils.GetUserIniFileName(settingsDir));
       iniFile.WriteValue(FORM_NAME, "Top", this.Top);
       iniFile.WriteValue(FORM_NAME, "Left", this.Left);
       iniFile.WriteValue(FORM_NAME, "Width", this.Width);
       iniFile.WriteValue(FORM_NAME, "Height", this.Height);
    }
    catch (Exception error)
    {
       XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
              "Error CNF-309 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
            FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
 }
Exemplo n.º 4
0
 private void WriteUserSettings()
 {
     try
     {
         gridViewTemplateList.SaveLayoutToXml(settingsDir + "\\" + TEMPLATE_LIST_GRID_SETTINGS);
         Sempra.Ops.IniFile iniFile = new Sempra.Ops.IniFile(FileNameUtils.GetUserIniFileName(settingsDir));
         iniFile.WriteValue(FORM_NAME, "Top", this.Top);
         iniFile.WriteValue(FORM_NAME, "Left", this.Left);
         iniFile.WriteValue(FORM_NAME, "Width", this.Width);
         iniFile.WriteValue(FORM_NAME, "Height", this.Height);
     }
     catch (Exception error)
     {
         XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
                             "Error CNF-309 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
                             FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 5
0
        private void WriteUserSettings()
        {
            try
            {
                gridViewTradeDataChanges.SaveLayoutToXml(Path.Combine(settingsDir, TRADE_DATA_CHANGES_GRID_SETTINGS));

                Sempra.Ops.IniFile iniFile = new Sempra.Ops.IniFile(FileNameUtils.GetUserIniFileName(settingsDir));
                iniFile.WriteValue(FORM_NAME, "Top", this.Top);
                iniFile.WriteValue(FORM_NAME, "Left", this.Left);
                iniFile.WriteValue(FORM_NAME, "Width", this.Width);
                iniFile.WriteValue(FORM_NAME, "Height", this.Height);
            }
            catch (Exception error)
            {
                XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
                                    "Error CNF-317 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
                                    FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 6
0
      private void WriteUserSettings()
      {
         try
         {
            gridViewTradeDataChanges.SaveLayoutToXml(Path.Combine(settingsDir, TRADE_DATA_CHANGES_GRID_SETTINGS));

            Sempra.Ops.IniFile iniFile = new Sempra.Ops.IniFile(FileNameUtils.GetUserIniFileName(settingsDir));
            iniFile.WriteValue(FORM_NAME, "Top", this.Top);
            iniFile.WriteValue(FORM_NAME, "Left", this.Left);
            iniFile.WriteValue(FORM_NAME, "Width", this.Width);
            iniFile.WriteValue(FORM_NAME, "Height", this.Height);
         }
         catch (Exception error)
         {
            XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
                   "Error CNF-317 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
                 FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
      }