/// <summary> /// 初期値 /// </summary> /// <param name="sender">イベントの発生したオブジェクト</param> /// <param name="e">発生したイベント</param> private void FooterConfigDialog_Shown(object sender, EventArgs e) { dlgFont.Font = CPrintDocumentBody.GetFont(TimeTable, CPrintDocumentFooter.RIT_FONT); // 書式 string format = TimeTable[CPrintDocumentFooter.RIT_FORMAT]; if (format == null) { format = CPrintDocumentFooter.RID_FORMAT_DEFAULT; } else if (format.Trim().Length == 0) { format = CPrintDocumentFooter.RID_FORMAT_DEFAULT; } cmbFormat.Text = format; // 列数 string column = TimeTable[CPrintDocumentFooter.RIT_COLUMN]; int icolumn = CPrintDocumentFooter.RIT_COLUMN_DEFAULT; if (column != null) { if (!(int.TryParse(column, out icolumn))) { icolumn = CPrintDocumentFooter.RIT_COLUMN_DEFAULT; } } nupColumnCount.Value = icolumn; }
/// <summary> /// 初期値の設定 /// </summary> /// <param name="sender">イベントの発生したオブジェクト</param> /// <param name="e">発生したイベント</param> private void HeaderConfigDialog_Shown(object sender, EventArgs e) { // 左 dlgLeftFont.Font = CPrintDocumentBody.GetFont(TimeTable, CPrintDocumentHeader.RIT_LEFTFONT); string LeftText = TimeTable[CPrintDocumentHeader.RIT_LEFTTEXT]; if (LeftText != null) { cmbLeftText.Text = LeftText; } else { cmbLeftText.Text = CPrintDocumentHeader.RIT_LEFTTEXT_DEFAULT; } // 中央 dlgCenterFont.Font = CPrintDocumentBody.GetFont(TimeTable, CPrintDocumentHeader.RIT_CENTERFONT); string CenterText = TimeTable[CPrintDocumentHeader.RIT_CENTERTEXT]; if (CenterText != null) { cmbCenterText.Text = CenterText; } else { cmbCenterText.Text = CPrintDocumentHeader.RIT_CENTERTEXT_DEFAULT; } // 右 dlgRightFont.Font = CPrintDocumentBody.GetFont(TimeTable, CPrintDocumentHeader.RIT_RIGHTFONT); string RightText = TimeTable[CPrintDocumentHeader.RIT_RIGHTTEXT]; if (RightText != null) { cmbRightText.Text = RightText; } else { cmbRightText.Text = CPrintDocumentHeader.RIT_RIGHTTEXT_DEFAULT; } // 日付フォーマット string dateformat = TimeTable[CPrintDocumentHeader.RIT_DATEFORMAT]; if (dateformat != null) { cmbDateFormat.Text = dateformat; } else { cmbDateFormat.Text = CPrintDocumentHeader.RIT_DATEFORMAT_DEFAULT; } // ページ string pageformt = TimeTable[CPrintDocumentHeader.RIT_PAGE]; if (pageformt != null) { txtPageFormat.Text = pageformt; } else { txtPageFormat.Text = ""; } // 全ページ string pageallformt = TimeTable[CPrintDocumentHeader.RIT_PAGEALL]; if (pageallformt != null) { txtPageAllFormat.Text = pageallformt; } else { txtPageAllFormat.Text = ""; } }