示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Create"/> class.
        /// </summary>
        /// <param name="provider">
        /// The provider.
        /// </param>
        /// <param name="mode">
        /// The mode.
        /// </param>
        /// <param name="graphMode">
        /// The graph mode.
        /// </param>
        public Create(Provider.Provider provider, int mode, int graphMode)
        {
            this.InitializeComponent();
            this.provider  = provider;
            this.Mode      = mode;
            this.GraphMode = graphMode;
            this.FillSelectedTreeComboBox();
            switch (this.GraphMode)
            {
            case 0:
                // do nothing
                break;

            case 1:
                this.InitializeTreeView();
                break;

            case 2:
                this.InitializeGraph();
                break;

            case 3:
                this.InitializeGleeGraph();
                break;
            }
        }
示例#2
0
文件: Search.cs 项目: rosaskc/gptrees
        /// <summary>
        /// Initializes a new instance of the <see cref="Search"/> class.
        /// </summary>
        /// <param name="provider">
        /// The provider.
        /// </param>
        /// <param name="graphMode">
        /// The graph mode.
        /// </param>
        public Search(Provider.Provider provider, int graphMode)
        {
            this.InitializeComponent();
            this.provider  = provider;
            this.GraphMode = graphMode;
            this.FillSelectedTreeComboBox();
            switch (this.GraphMode)
            {
            case 0:
                // do nothing
                break;

            case 1:
                this.InitializeTreeView();
                break;

            case 2:
                this.InitializeGraph();
                break;

            case 3:
                this.InitializeGleeGraph();
                break;
            }

            this.labelTime.ResetText();
            this.labelNodes.ResetText();
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BatchProcess"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public BatchProcess(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.PrepareDialog();
     this.InitializeEditBox();
     this.provider = provider;
     this.IsAdd    = false;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddTree"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="fromFile">
 /// The from file.
 /// </param>
 /// <param name="mode">
 /// The mode.
 /// </param>
 public AddTree(Provider.Provider provider, bool fromFile, int mode)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.fromFile = fromFile;
     this.mode     = mode;
     this.FillTrees();
     this.SetTitleLabel();
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenDialog"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="multiselect">
 /// The multiselect.
 /// </param>
 public OpenDialog(Provider.Provider provider, bool multiselect)
 {
     this.InitializeComponent();
     this.provider    = provider;
     this.multiselect = multiselect;
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenDialog"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public OpenDialog(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.provider    = provider;
     this.multiselect = false;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResultsSet"/> class.
 /// </summary>
 /// <param name="provider">
 /// The provider.
 /// </param>
 public ResultsSet(Provider.Provider provider)
 {
     this.InitializeComponent();
     this.provider = provider;
     this.dataGridViewResultsSet.ColumnHeadersBorderStyle = ProperColumnHeadersBorderStyle;
 }