コード例 #1
0
        /// <summary>
        /// The main window closed.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void MainWindowClosed(object sender, EventArgs e)
        {
            var items = new Dictionary <string, string>();

            if (!this.CheckIsUserDataSelected() && !this.CheckIsServerListSelected())
            {
                return;
            }

            if (this.CheckIsUserDataSelected())
            {
                items.Add(this.LastSelectionPropertyName[0], this.GetSelectedUserName());
            }

            if (this.CheckIsServerListSelected())
            {
                items.Add(this.LastSelectionPropertyName[1], this.GetSelectedServerName());
            }

            FileController.SaveApplicationDirectoryInfo(items, this.LastSelectionPropertyName, R6SServerChangerTextContainer.LastSelectionItemsName);
        }
コード例 #2
0
 /// <summary>
 /// パスを取得し、そのままそのデータを保存
 /// </summary>
 private void GetandSavePathData()
 {
     FileController.SaveApplicationDirectoryInfo(this.GetPathData(), this.ItemPropertyName, R6SServerChangerTextContainer.SettingItemsName);
 }