Пример #1
0
 /// <summary>
 /// 保存
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SaveButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (!ValidateInputs())
         {
             return;
         }
         //入力値を変更
         //表示名
         this._targetView.DisplayName = this.txtViewTitle.Text;
         //変換対象
         this._targetView.IsTarget = this.rdbConvert.Checked;
         //アイテム数
         this._targetView.RowLimit = (int)this.numLimitRow.Value;
         //既定のビュー
         this._targetView.IsTarget = this.chkDefault.Checked;
         //チェックボックス表示
         this._targetView.ShowChecked = this.chkDefault.Checked;
         using (SqlAccessor sqlAccessor = Accessor.AccessorFactory.GetSqlAccessor())
         {
             sqlAccessor.UpdateMigrateView(this._targetView);
         }
         Log.Write(this.TargetView.TaskId, RSM.GetMessage(RS.Informations.ViewSetted, this.TargetView.Name));
         this.DialogResult = System.Windows.Forms.DialogResult.OK;
         this.Close();
     }
     catch (Exception ex)
     {
         Log.Write(ex);
         RSM.ShowMessage(this, ex);
     }
 }