/// <summary> /// Perform initializing /// </summary> protected override void OnLoad(EventArgs e) { base.OnLoad(e); var buttonWidth = (int)(Data.HorizontalDLU * 60); var btnHrzSpace = (int)(Data.HorizontalDLU * 3); ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, 400); BtnImport.Focus(); }
/// <summary> /// Perform initializing /// </summary> protected override void OnLoad(EventArgs e) { base.OnLoad(e); var buttonWidth = (int)(Data.HorizontalDLU * 60); var btnHrzSpace = (int)(Data.HorizontalDLU * 3); ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, 400); // Starting DateTime DtpStartingDate.Value = string.IsNullOrEmpty(Configs.ImportStartingDate) ? DateTime.Now.AddYears(-2) : DateTime.Parse(Configs.ImportStartingDate); // Ending DateTime DtpEndingDate.Value = string.IsNullOrEmpty(Configs.ImportEndingDate) ? DateTime.Now : DateTime.Parse(Configs.ImportEndingDate); BtnImport.Focus(); }