Example #1
0
 public override void Closing()
 {
     uctg.OnTravelSelectionChanged -= Uctg_OnTravelSelectionChanged;
     computer.ShutDown();
     SQLiteConnectionUser.PutSettingDouble(DbSave + "PlotMin", textMinRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbSave + "PlotMax", textMaxRadius.Value);
 }
Example #2
0
 public override void Closing()
 {
     DGVSaveColumnLayout(dataGridView, DbColumnSave);
     conditionFilterUC.Check();      // checks, ignore string return errors, fills in Result
     SQLiteConnectionUser.PutSettingString(DbQuerySave, conditionFilterUC.Result.ToString());
     Queries.Instance.Save();
     SQLiteConnectionUser.PutSettingDouble(DbSplitterSave, splitContainer.GetSplitterDistance());
 }
Example #3
0
 public override void Closing()
 {
     uctg.OnTravelSelectionChanged -= Uctg_OnTravelSelectionChanged;
     computer.ShutDown();
     SQLiteConnectionUser.PutSettingDouble(DbSave + "PlotMin", textMinRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbSave + "PlotMax", textMaxRadius.Value);
     SQLiteConnectionUser.PutSettingString(DbSave + "PlotOrientation", comboBoxView.SelectedItem.ToString());
 }
Example #4
0
 public override void Closing()
 {
     uctg.OnTravelSelectionChanged -= Uctg_OnTravelSelectionChanged;
     computer.ShutDown();
     SQLiteConnectionUser.PutSettingDouble(DbSave + "Min", textMinRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbSave + "Max", textMaxRadius.Value);
     SQLiteConnectionUser.PutSettingBool(DbSave + "Behaviour", checkBoxCube.Checked);
 }
Example #5
0
 public void Closing()
 {
     SQLiteConnectionUser.PutSettingDouble(DbRadiusMin, numberBoxMinRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbRadiusMax, numberBoxMaxRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbX, numberBoxDoubleX.Value);
     SQLiteConnectionUser.PutSettingDouble(DbY, numberBoxDoubleY.Value);
     SQLiteConnectionUser.PutSettingDouble(DbZ, numberBoxDoubleZ.Value);
     SQLiteConnectionUser.PutSettingString(DbStar, textBoxSystemName.Text);
 }
Example #6
0
 public override void Closing()
 {
     uctg.OnTravelSelectionChanged -= Uctg_OnTravelSelectionChanged;
     computer.ShutDown();
     SQLiteConnectionUser.PutSettingDouble(DbSave + "MapMin", textMinRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbSave + "MapMax", textMaxRadius.Value);
     SQLiteConnectionUser.PutSettingInt(DbSave + "MapMaxItems", maxitems);
     SQLiteConnectionUser.PutSettingDouble(DbSave + "MapRotationX", prevxr);
     SQLiteConnectionUser.PutSettingDouble(DbSave + "MapRotationY", prevyr);
 }
Example #7
0
 public void Closing()
 {
     SQLiteConnectionUser.PutSettingDouble(DbRadiusMin, numberBoxMinRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbRadiusMax, numberBoxMaxRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbX, numberBoxDoubleX.Value);
     SQLiteConnectionUser.PutSettingDouble(DbY, numberBoxDoubleY.Value);
     SQLiteConnectionUser.PutSettingDouble(DbZ, numberBoxDoubleZ.Value);
     SQLiteConnectionUser.PutSettingString(DbStar, textBoxSystemName.Text);
     SQLiteConnectionUser.PutSettingBool(DbCube, checkBoxCustomCube.Checked);
     SQLiteConnectionUser.PutSettingBool(DbEVS, extCheckBoxExcludeVisitedSystems.Checked);
 }
Example #8
0
        private void ChartMap_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                prevxr = Cursor.Position.X; // record the last mouse position
                prevyr = Cursor.Position.Y; //

                SQLiteConnectionUser.PutSettingDouble(DbSave + "MapRotationX", prevxr);
                SQLiteConnectionUser.PutSettingDouble(DbSave + "MapRotationY", prevyr);

                CenterMouseOverControl(chartMap);
                Cursor.Show(); // show the cursor
            }
            if (e.Button == MouseButtons.Middle)
            {
                // return to the default cursor
                Cursor.Current = Cursors.Default;
            }
        }