Beispiel #1
0
 public void Init()
 {
     model = new TodoListModel();
     controller = new TodoControllerWin();
     modelDS = model.GetTodoList();
     controllerDS = controller.GetTodoList();
 }
Beispiel #2
0
 public void Dispose()
 {
     model = null;
     modelDS = null;
     controller = null;
     controllerDS = null;
 }
 public void Dispose()
 {
     model        = null;
     modelDS      = null;
     controller   = null;
     controllerDS = null;
 }
 public void Init()
 {
     model        = new TodoListModel();
     controller   = new TodoControllerWin();
     modelDS      = model.GetTodoList();
     controllerDS = controller.GetTodoList();
 }
Beispiel #5
0
        /// <summary>

        /// Required method for Designer support - do not modify

        /// the contents of this method with the code editor.

        /// </summary>

        private void InitializeComponent()

        {
            this.dgTodoList = new System.Windows.Forms.DataGrid();

            this.btnUpdateTodoList = new System.Windows.Forms.Button();

            this.btnRemoveTodo = new System.Windows.Forms.Button();

            ((System.ComponentModel.ISupportInitialize)(this.dgTodoList)).BeginInit();

            this.SuspendLayout();

            //

            // dgTodoList

            //

            this.dgTodoList.AlternatingBackColor = System.Drawing.Color.Gainsboro;

            this.dgTodoList.BackColor = System.Drawing.Color.Silver;

            this.dgTodoList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;

            this.dgTodoList.CaptionBackColor = System.Drawing.Color.DarkSlateBlue;

            this.dgTodoList.CaptionFont = new System.Drawing.Font("Tahoma", 8F);

            this.dgTodoList.CaptionForeColor = System.Drawing.Color.White;

            this.dgTodoList.CaptionText = "Todo List";

            this.dgTodoList.DataMember = "";

            this.dgTodoList.FlatMode = true;

            this.dgTodoList.ForeColor = System.Drawing.Color.Black;

            this.dgTodoList.GridLineColor = System.Drawing.Color.White;

            this.dgTodoList.HeaderBackColor = System.Drawing.Color.DarkGray;

            this.dgTodoList.HeaderForeColor = System.Drawing.Color.Black;

            this.dgTodoList.LinkColor = System.Drawing.Color.DarkSlateBlue;

            this.dgTodoList.Location = new System.Drawing.Point(32, 80);

            this.dgTodoList.Name = "dgTodoList";

            this.dgTodoList.ParentRowsBackColor = System.Drawing.Color.Black;

            this.dgTodoList.ParentRowsForeColor = System.Drawing.Color.White;

            this.dgTodoList.PreferredColumnWidth = 250;

            this.dgTodoList.SelectionBackColor = System.Drawing.Color.DarkSlateBlue;

            this.dgTodoList.SelectionForeColor = System.Drawing.Color.White;

            this.dgTodoList.Size = new System.Drawing.Size(592, 368);

            this.dgTodoList.TabIndex = 0;

            //

            // btnUpdateTodoList

            //

            this.btnUpdateTodoList.Location = new System.Drawing.Point(32, 24);

            this.btnUpdateTodoList.Name = "btnUpdateTodoList";

            this.btnUpdateTodoList.Size = new System.Drawing.Size(120, 23);

            this.btnUpdateTodoList.TabIndex = 1;

            this.btnUpdateTodoList.Text = "Update Todo List";

            this.btnUpdateTodoList.Click += new System.EventHandler(this.btnUpdateTodoList_Click);

            //

            // btnRemoveTodo

            //

            this.btnRemoveTodo.Location = new System.Drawing.Point(200, 24);

            this.btnRemoveTodo.Name = "btnRemoveTodo";

            this.btnRemoveTodo.Size = new System.Drawing.Size(120, 23);

            this.btnRemoveTodo.TabIndex = 2;

            this.btnRemoveTodo.Text = "Remove Todo";

            this.btnRemoveTodo.Click += new System.EventHandler(this.btnRemoveTodo_Click);

            //

            // WinFormView

            //

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);

            this.ClientSize = new System.Drawing.Size(648, 486);

            this.Controls.Add(this.btnRemoveTodo);

            this.Controls.Add(this.btnUpdateTodoList);

            this.Controls.Add(this.dgTodoList);

            this.Name = "WinFormView";

            this.Text = "HeadFirstPattern WinForm MVC View";

            ((System.ComponentModel.ISupportInitialize)(this.dgTodoList)).EndInit();

            this.ResumeLayout(false);

            //

            //Controller

            //

            controller = new TodoControllerWin();
        }
        /// <summary>

        /// Required method for Designer support - do not modify

        /// the contents of this method with the code editor.

        /// </summary>

        private void InitializeComponent()

        {

            this.dgTodoList = new System.Windows.Forms.DataGrid();

            this.btnUpdateTodoList = new System.Windows.Forms.Button();

            this.btnRemoveTodo = new System.Windows.Forms.Button();

            ((System.ComponentModel.ISupportInitialize)(this.dgTodoList)).BeginInit();

            this.SuspendLayout();

            // 

            // dgTodoList

            // 

            this.dgTodoList.AlternatingBackColor = System.Drawing.Color.Gainsboro;

            this.dgTodoList.BackColor = System.Drawing.Color.Silver;

            this.dgTodoList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;

            this.dgTodoList.CaptionBackColor = System.Drawing.Color.DarkSlateBlue;

            this.dgTodoList.CaptionFont = new System.Drawing.Font("Tahoma", 8F);

            this.dgTodoList.CaptionForeColor = System.Drawing.Color.White;

            this.dgTodoList.CaptionText = "Todo List";

            this.dgTodoList.DataMember = "";

            this.dgTodoList.FlatMode = true;

            this.dgTodoList.ForeColor = System.Drawing.Color.Black;

            this.dgTodoList.GridLineColor = System.Drawing.Color.White;

            this.dgTodoList.HeaderBackColor = System.Drawing.Color.DarkGray;

            this.dgTodoList.HeaderForeColor = System.Drawing.Color.Black;

            this.dgTodoList.LinkColor = System.Drawing.Color.DarkSlateBlue;

            this.dgTodoList.Location = new System.Drawing.Point(32, 80);

            this.dgTodoList.Name = "dgTodoList";

            this.dgTodoList.ParentRowsBackColor = System.Drawing.Color.Black;

            this.dgTodoList.ParentRowsForeColor = System.Drawing.Color.White;

            this.dgTodoList.PreferredColumnWidth = 250;

            this.dgTodoList.SelectionBackColor = System.Drawing.Color.DarkSlateBlue;

            this.dgTodoList.SelectionForeColor = System.Drawing.Color.White;

            this.dgTodoList.Size = new System.Drawing.Size(592, 368);

            this.dgTodoList.TabIndex = 0;

            // 

            // btnUpdateTodoList

            // 

            this.btnUpdateTodoList.Location = new System.Drawing.Point(32, 24);

            this.btnUpdateTodoList.Name = "btnUpdateTodoList";

            this.btnUpdateTodoList.Size = new System.Drawing.Size(120, 23);

            this.btnUpdateTodoList.TabIndex = 1;

            this.btnUpdateTodoList.Text = "Update Todo List";

            this.btnUpdateTodoList.Click += new System.EventHandler(this.btnUpdateTodoList_Click);

            // 

            // btnRemoveTodo

            // 

            this.btnRemoveTodo.Location = new System.Drawing.Point(200, 24);

            this.btnRemoveTodo.Name = "btnRemoveTodo";

            this.btnRemoveTodo.Size = new System.Drawing.Size(120, 23);

            this.btnRemoveTodo.TabIndex = 2;

            this.btnRemoveTodo.Text = "Remove Todo";

            this.btnRemoveTodo.Click += new System.EventHandler(this.btnRemoveTodo_Click);

            // 

            // WinFormView

            // 

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);

            this.ClientSize = new System.Drawing.Size(648, 486);

            this.Controls.Add(this.btnRemoveTodo);

            this.Controls.Add(this.btnUpdateTodoList);

            this.Controls.Add(this.dgTodoList);

            this.Name = "WinFormView";

            this.Text = "HeadFirstPattern WinForm MVC View";

            ((System.ComponentModel.ISupportInitialize)(this.dgTodoList)).EndInit();

            this.ResumeLayout(false);

            //

            //Controller

            //

            controller = new TodoControllerWin();



        }