예제 #1
0
        public GlossaryControl(MainForm context)
        {
            InitializeComponent();

            this.context = context;
            this.RefreshData();
        }
예제 #2
0
        public LoadUserControl(MainForm context)
        {
            InitializeComponent();

            this.dataGridView.Columns["nameCol"].DefaultCellStyle.Padding = new Padding(10, 0, 0, 0);
            this.dataGridView.Columns["ageCol"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridView.Columns["sexCol"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;

            this.context = context;
            this.RefreshData();
        }
예제 #3
0
        public SituationsControl(MainForm context)
        {
            InitializeComponent();

            this.context = context;
            this.model = context.Model;

            // Situations
            this.currentSituation = 0;
            switchSituation(currentSituation);

            // User
            this.labelUserName.Text = model.CurrentUser.Name;
        }
예제 #4
0
 public ResultControl(MainForm context)
     : this()
 {
     this.context = context;
 }
예제 #5
0
        public NewUserControl(MainForm context)
        {
            InitializeComponent();

            this.context = context;
        }