Пример #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
        /// <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
        /// <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();
 }