Example #1
0
 public override void Closing()
 {
     SQLiteConnectionUser.PutSettingBool(DbSave + "PinState", rollUpPanelTop.PinState);
     uctg.OnTravelSelectionChanged -= Uctg_OnTravelSelectionChanged;
     discoveryform.OnNewEntry      -= NewEntry;
     closing = true;
 }
Example #2
0
 public override void Closing()
 {
     DGVSaveColumnLayout(dataGridViewTravel, DbColumnSave);
     discoveryform.OnHistoryChange -= HistoryChanged;
     discoveryform.OnNewEntry      -= AddNewEntry;
     SQLiteConnectionUser.PutSettingBool(DbAutoTop, checkBoxMoveToTop.Checked);
 }
Example #3
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);
 }
 public override void Closing()
 {
     DGVSaveColumnLayout(dataGridViewJournal, DbColumnSave);
     discoveryform.OnHistoryChange -= Display;
     discoveryform.OnNewEntry      -= AddNewEntry;
     SQLiteConnectionUser.PutSettingBool(DbAutoTop, checkBoxMoveToTop.Checked);
     searchtimer.Dispose();
 }
Example #5
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());
     SQLiteConnectionUser.PutSettingBool(DbSave + "PlotDepth", checkBoxDotSize.Checked);
 }
 public override void Closing()
 {
     todo.Clear();
     todotimer.Stop();
     searchtimer.Stop();
     DGVSaveColumnLayout(dataGridViewStarList, DbColumnSave);
     discoveryform.OnHistoryChange -= HistoryChanged;
     discoveryform.OnNewEntry      -= AddNewEntry;
     SQLiteConnectionUser.PutSettingBool(DbAutoTop, checkBoxCursorToTop.Checked);
 }
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);
 }
Example #8
0
        public override void Closing()
        {
            DGVSaveColumnLayout(dataGridView, DbColumnSave);

            SQLiteConnectionUser.PutSettingDate(DbStartDate, dateTimePickerStartDate.Value);
            SQLiteConnectionUser.PutSettingDate(DbEndDate, dateTimePickerEndDate.Value);
            SQLiteConnectionUser.PutSettingBool(DbStartDateOn, dateTimePickerStartDate.Checked);
            SQLiteConnectionUser.PutSettingBool(DbEndDateOn, dateTimePickerEndDate.Checked);

            searchtimer.Dispose();
            GlobalCaptainsLogList.Instance.OnLogEntryChanged -= LogChanged;

            discoveryform.OnRefreshCommanders -= Discoveryform_OnRefreshCommanders;
        }
Example #9
0
        public override void Closing()
        {
            DGVSaveColumnLayout(dataGridView, DbColumnSave);

            string[] list = (from x in tags select(x.Key + "=" + (string)x.Value.Tag)).ToArray();
            SQLiteConnectionUser.PutSettingString(DbSaveTags, string.Join(";", list));

            SQLiteConnectionUser.PutSettingDate(DbStartDate, dateTimePickerStartDate.Value);
            SQLiteConnectionUser.PutSettingDate(DbEndDate, dateTimePickerEndDate.Value);
            SQLiteConnectionUser.PutSettingBool(DbStartDateOn, dateTimePickerStartDate.Checked);
            SQLiteConnectionUser.PutSettingBool(DbEndDateOn, dateTimePickerEndDate.Checked);

            searchtimer.Dispose();
            GlobalCaptainsLogList.Instance.OnLogEntryChanged -= LogChanged;

            discoveryform.OnRefreshCommanders -= Discoveryform_OnRefreshCommanders;
        }
Example #10
0
        public override void Closing()
        {
            DGVSaveColumnLayout(dataGridViewCombat, DbColumnSave);

            discoveryform.OnNewEntry      -= Discoveryform_OnNewEntry;
            discoveryform.OnHistoryChange -= Discoveryform_OnHistoryChange;
            transparentfont?.Dispose();

            string s = "";

            foreach (FilterEntry f in savedfilterentries)
            {
                s += f.Type.ToString() + "," + f.Name.QuoteString(comma: true) + "," + f.TargetFaction.QuoteString(comma: true) + "," +
                     f.StartTime.ToStringZulu() + "," + f.EndTime.ToStringZulu() + ",";
            }

            SQLiteConnectionUser.PutSettingString(DbSave + "Campaign", s);

            SQLiteConnectionUser.PutSettingBool(DbSave + "Gridshow", checkBoxCustomGridOn.Checked);
            SQLiteConnectionUser.PutSettingString(DbSave + "Selected", current?.UniqueID ?? "");
        }
 private void buttonJumponium_CheckedChanged(object sender, EventArgs e)
 {
     SQLiteConnectionUser.PutSettingBool(DbShowJumponium, checkBoxJumponium.Checked);
     HistoryChanged(current_historylist);
 }
 private void buttonBodyClasses_CheckedChanged(object sender, EventArgs e)
 {
     SQLiteConnectionUser.PutSettingBool(DbShowClasses, checkBoxBodyClasses.Checked);
     HistoryChanged(current_historylist);
 }
Example #13
0
        bool isClosing = false;     // in case we are in a middle of a lookup

        public override void Closing()
        {
            isClosing = true;
            SQLiteConnectionUser.PutSettingBool(DbSave + "PinState", rollUpPanelTop.PinState);
            uctg.OnTravelSelectionChanged -= Uctg_OnTravelSelectionChanged;
        }