예제 #1
0
 public override void Closing()
 {
     uctg.OnTravelSelectionChanged -= Uctg_OnTravelSelectionChanged;
     computer.ShutDown();
     SQLiteConnectionUser.PutSettingDouble(DbSave + "PlotMin", textMinRadius.Value);
     SQLiteConnectionUser.PutSettingDouble(DbSave + "PlotMax", textMaxRadius.Value);
 }
예제 #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());
 }
예제 #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());
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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;
            }
        }