예제 #1
0
        /// <summary>
        /// The btn open files click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void BtnOpenFilesClick(object sender, EventArgs e)
        {
            var openDialog = new OpenDialog(this.provider, true)
            {
                Owner = this
            };

            openDialog.ShowDialog();
            var currentDateTime = DateTime.Now.TimeOfDay.ToString();

            this.textBoxLog.AppendText("[" + currentDateTime.Substring(0, 13) + "]" + "\tFiles loaded." + Environment.NewLine);
            this.EnableCreateButtons();
            this.PopulateComboBox();
        }
예제 #2
0
파일: MainForm.cs 프로젝트: rosaskc/gptrees
        /// <summary>
        /// The btn open click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void BtnOpenClick(object sender, EventArgs e)
        {
            var openDialog = new OpenDialog(this.provider)
            {
                Owner = this
            };

            openDialog.ShowDialog();
            if (this.ActiveMdiChild == null || this.ActiveMdiChild.IsDisposed || this.ActiveMdiChild.Name != "Create")
            {
                return;
            }

            var activeMdiChild = (Create)this.ActiveMdiChild;

            activeMdiChild.Mode = this.Mode;
        }
예제 #3
0
파일: MainForm.cs 프로젝트: rosaskc/gptrees
        /// <summary>
        /// The btn open click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void BtnOpenClick(object sender, EventArgs e)
        {
            var openDialog = new OpenDialog(this.provider) { Owner = this };
            openDialog.ShowDialog();
            if (this.ActiveMdiChild == null || this.ActiveMdiChild.IsDisposed || this.ActiveMdiChild.Name != "Create")
            {
                return;
            }

            var activeMdiChild = (Create)this.ActiveMdiChild;
            activeMdiChild.Mode = this.Mode;
        }
예제 #4
0
 /// <summary>
 /// The btn open files click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void BtnOpenFilesClick(object sender, EventArgs e)
 {
     var openDialog = new OpenDialog(this.provider, true) { Owner = this };
     openDialog.ShowDialog();
     var currentDateTime = DateTime.Now.TimeOfDay.ToString();
     this.textBoxLog.AppendText("[" + currentDateTime.Substring(0, 13) + "]" + "\tFiles loaded." + Environment.NewLine);
     this.EnableCreateButtons();
     this.PopulateComboBox();
 }