コード例 #1
0
        private void NotifyOnPropertyChanged(PhaseControl phaseControl, string propertyName)
        {
            var tmp = PropertyChanged;

            if (tmp != null)
            {
                tmp(phaseControl, new PropertyChangedEventArgs(propertyName));
            }
        }
コード例 #2
0
 private void CurrentPhaseChanged(object o, PropertyChangedEventArgs e)
 {
     if (o != null)
     {
         currentControl = (PhaseControl)o;
         this.Controls.Add(currentControl);
         currentControl.BringToFront();
         currentControl.Show();
     }
 }
コード例 #3
0
        private void buttonEnter_Click(object sender, EventArgs e)
        {
            PhaseControl phaseControl = new PhaseControl(this.viewModel.survey);

            phaseControl.Visible       = false;
            phaseControl.Dock          = System.Windows.Forms.DockStyle.Fill;
            phaseControl.AutoScaleMode = AutoScaleMode.None;
            phaseControl.Name          = "projectContextView";
            NotifyOnPropertyChanged(phaseControl, "");
        }
コード例 #4
0
 private void ModelInfo_VisibleChanged(object sender, EventArgs e)
 {
     if (!this.Visible)
     {
         if (this.currentControl != null)
         {
             this.Controls.Remove(currentControl);
             currentControl.Dispose();
             currentControl = null;
         }
     }
 }