コード例 #1
0
 private void Mainform_FormClosing(object sender, FormClosingEventArgs e)
 {
     customConfig.PositionX = (uint)_posX;
     customConfig.PositionY = (uint)_posY;
     customConfig.Save();
     LogHandler.Close();
 }
コード例 #2
0
 private void B_SaveAndClose_Click(object sender, EventArgs e)
 {
     customConfig.CVARS = T_CommandLine.Text;
     customConfig.Save();
     lithTechConfig.SCREENWIDTH  = lithTechConfig.GameScreenWidth;
     lithTechConfig.SCREENHEIGHT = lithTechConfig.GameScreenHeight;
     lithTechConfig.OtherLines   = RB_ManualEdit.Lines.ToList();
     lithTechConfig.Save();
     this.DialogResult = DialogResult.OK;
     Close();
 }