public TreeNodeMouseClickEventParams()
 {
     mTreeView = null;
     mContain = null;
     mX = -1;
     mY = -1;
 }
Exemple #2
0
 public MenuStrip()
 {
     mMenuItems = new List<MenuItem>();
     mDockStyle = @"None";
     mMenuStrip = null;
     mContain = null;
 }
Exemple #3
0
        public override void _runCommand()
        {
            IContain contain_ = this._getOwner() as IContain;
            IForm    form_    = contain_._contain() as IForm;

            form_._runClose();
        }
Exemple #4
0
 public ToolPanel()
 {
     mToolStrips = new List<ToolStrip>();
     mToolStripPanel = null;
     mDockStyle = @"None";
     mContain = null;
 }
Exemple #5
0
 private static IMore <IEnumerable <KeyValuePair <TKey, TValue> > > AddKeyMatcher <TKey, TValue>(
     IContain <IEnumerable <KeyValuePair <TKey, TValue> > > continuation,
     TKey key,
     Func <string> customMessage)
 {
     continuation.SetMetadata(CONTINUATION_KEY, key);
     return(continuation.AddMatcher(collection =>
     {
         var passed = collection != null &&
                      TryFindValueForKey(collection, key, out var _);
         return new MatcherResult(
             passed,
             FinalMessageFor(
                 () => new[]
         {
             "Expected",
             collection.LimitedPrint(),
             $"{passed.AsNot()}to contain key",
             key?.Stringify()
         },
                 customMessage
                 )
             );
     }));
 }
Exemple #6
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// Upcast from sbyte to long for convenience
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 public static IDictionaryValueContinuation <long> Key <TKey>(
     this IContain <IEnumerable <KeyValuePair <TKey, sbyte> > > continuation,
     TKey key
     )
 {
     return(continuation.Key(key, NULL_STRING));
 }
Exemple #7
0
 public RadioButton()
 {
     mRadioButton = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mContain = null;
     mText = null;
 }
Exemple #8
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 /// <typeparam name="TValue">Type of the dictionary values</typeparam>
 public static IDictionaryValueContinuation <TValue> Key <TKey, TValue>(
     this IContain <IEnumerable <KeyValuePair <TKey, TValue> > > continuation,
     TKey key,
     string customMessage
     )
 {
     return(continuation.Key(key, () => customMessage));
 }
Exemple #9
0
        public override void _runCommand()
        {
            IContain         contain_          = this._getOwner() as IContain;
            ISideBar         sideBar_          = contain_._childControl("sideBar") as ISideBar;
            SideBarSingleton sideBarSingleton_ = __singleton <SideBarSingleton> ._instance();

            sideBarSingleton_._setSideBar(sideBar_);
        }
Exemple #10
0
 public ToolStrip()
 {
     mMemberStreams = new List<MemberStream>();
     mToolStripItemAdapts = new List<ToolStripItemAdapt>();
     mDockStyle = @"None";
     mToolStrip = null;
     mVisible = false;
     mContain = null;
 }
Exemple #11
0
 public DockPad()
 {
     mDockStyle = @"None";
     mDockFrame = null;
     mCaption = null;
     mContain = null;
     mIcon = null;
     mPadName = null;
 }
Exemple #12
0
 /// <summary>
 /// Starts continuation to match any items in the source collection
 /// </summary>
 /// <param name="contain">Continuation to continue from</param>
 /// <typeparam name="T">Type of items in collection</typeparam>
 /// <returns></returns>
 public static ICountMatchContinuation <IEnumerable <T> > Any <T>(
     this IContain <IEnumerable <T> > contain
     )
 {
     return(new CountMatchContinuation <IEnumerable <T> >(
                contain,
                CountMatchMethods.Any,
                0
                ));
 }
Exemple #13
0
 public RadioButtonEx()
 {
     mCheckCommand = null;
     mCheckCmd = null;
     mRadioButton = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mContain = null;
     mText = null;
 }
Exemple #14
0
 public Button()
 {
     mPoint = new Point2I();
     mSize = new Size2I();
     mCommand = null;
     mOnClick = null;
     mButton = null;
     mContain = null;
     mText = null;
     mEnable = true;
 }
Exemple #15
0
 public ComboBox()
 {
     mComboBoxItems = new List<ComboBoxItem>();
     mCommands = new List<ICommand>();
     m_tSelectTextSlot = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mComboBox = null;
     mContain = null;
     mEnable = true;
 }
Exemple #16
0
        public override void _runCommand()
        {
            IContain      contain_       = this._getOwner() as IContain;
            ITreeView     treeView_      = contain_._childControl("treeView1") as ITreeView;
            NewProjectUrl newProjectUrl_ = new NewProjectUrl();
            string        newUrl_        = @"rid://notepad.implement.newProjectUrl";

            newProjectUrl_._runLoad(newUrl_);
            newProjectUrl_._runInit();
            newProjectUrl_._addTreeNode(treeView_);
        }
Exemple #17
0
 public SideBar()
 {
     mSideTabs = new List<SideTab>();
     mSideBarControl = null;
     mDockStyle = @"None";
     mSideBarUrl = null;
     mActiveTab = null;
     mInitCommand = null;
     mInitCmd = null;
     mContain = null;
 }
Exemple #18
0
 public MenuItem()
 {
     mMemberStreams = new List<MemberStream>();
     mMenuItems = new List<MenuItem>();
     mToolStripMenuItem = null;
     mCommand = null;
     mCmdStr = null;
     mContain = null;
     mText = null;
     mIcon = null;
 }
Exemple #19
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// Upcast from float to double for convenience
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <param name="customMessageGenerator">Generates a custom message to add to failure messages</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 public static IDictionaryValueContinuation <double> Key <TKey>(
     this IContain <IEnumerable <KeyValuePair <TKey, float> > > continuation,
     TKey key,
     Func <string> customMessageGenerator
     )
 {
     AddKeyMatcher(continuation, key, customMessageGenerator);
     return(CreateValueContinuationFor <TKey, float, double>(
                continuation,
                key
                ));
 }
Exemple #20
0
 /// <summary>
 /// Match exactly N elements with following matchers
 /// </summary>
 /// <param name="contain">contain continuation</param>
 /// <param name="howMany">how many items to match</param>
 /// <typeparam name="T">Type of item to match</typeparam>
 /// <returns>continuation be used: .Equal.To()</returns>
 public static ICountMatchContinuation <IEnumerable <T> > Exactly <T>(
     this IContain <IEnumerable <T> > contain,
     int howMany
     )
 {
     CheckContain(contain);
     return(new CountMatchContinuation <IEnumerable <T> >(
                contain,
                CountMatchMethods.Exactly,
                howMany
                ));
 }
Exemple #21
0
 public static void Child(
     this IContain <Container> contain,
     Sub sub)
 {
     contain.AddMatcher(actual =>
     {
         var passed = (actual?.Subs ?? new Sub[0])
                      .Any(c => c.Name == sub.Name);
         return(new MatcherResult(
                    passed,
                    $"Expected {actual.Stringify()} {passed.AsNot()}to contain sub {sub.Name}"));
     });
 }
Exemple #22
0
 public TreeView()
 {
     mShowRootLines = false;
     mDockStyle = @"None";
     mInitCommand = null;
     mInitCmd = null;
     mTreeView = null;
     mContain = null;
     mSize = null;
     mLoadCommand = null;
     mLoadCmd = null;
     mTreeNodes = new List<ITreeNode>();
 }
Exemple #23
0
 public ListView()
 {
     mDockStyle = @"None";
     mViewStyle = "List";
     mContain = null;
     mInitCommand = null;
     mInitCmd = null;
     mLoadCommand = null;
     mLoadCmd = null;
     mItemActivateCommand = null;
     mItemActivateCmd = null;
     mSelectedIndexChangedCommand = null;
     mSelectedIndexChangedCmd = null;
     mSize = null;
 }
Exemple #24
0
 public static void Shape(
     this IContain <Rectangle> contain,
     Rectangle other
     )
 {
     contain.AddMatcher(actual =>
     {
         var passed = actual.Left <= other.Left &&
                      actual.Right >= other.Right &&
                      actual.Top <= other.Top &&
                      actual.Bottom >= other.Bottom;
         return(new MatcherResult(
                    passed,
                    () => $"Expected {actual.Stringify()} {passed.AsNot()}to contain {other.Stringify()}"));
     });
 }
Exemple #25
0
 public static void Only(
     this IContain <MemoryStream> contain,
     byte[] data)
 {
     contain.AddMatcher(actual =>
     {
         var actualData   = actual.ReadAllBytes();
         var lengthsMatch = actualData.Length == data.Length;
         var passed       = lengthsMatch &&
                            actualData.DeepEquals(data);
         return(new MatcherResult(
                    passed,
                    () => lengthsMatch
                       ? "Stream data matches expected length, but not expected content"
                       : "Stream data does not match expected content at all"
                    ));
     });
 }
Exemple #26
0
        public override void _runCommand()
        {
            IContain contain_ = this._getOwner() as IContain;
            IForm    form_    = contain_._contain() as IForm;

            ITextBox fileUrlTextBox_  = form_._childControl("panel1/fileUrl") as ITextBox;
            ITextBox fileNameTextBox_ = form_._childControl("panel1/fileName") as ITextBox;
            string   fileUrl_         = fileUrlTextBox_._getText();
            string   fileName_        = fileNameTextBox_._getText();

            if (null == fileUrl_ || "" == fileUrl_)
            {
                return;
            }
            if (null == fileName_ || "" == fileName_)
            {
                return;
            }
            IListView         listView_  = form_._childControl("panel2/listView1") as IListView;
            IList <IListItem> listItems_ = listView_._selectedItems();

            if (listItems_.Count <= 0)
            {
                return;
            }

            NewProjectNodeCommand newProjectNodeCommand_ = listItems_[0] as NewProjectNodeCommand;
            string            commandUrl_        = newProjectNodeCommand_._getCommandUrl();
            NewProjectArg     newProjectArg_     = new NewProjectArg(fileUrl_, fileName_);
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            ICommand command_ = platformSingleton_._findInterface <ICommand>(commandUrl_);

            command_._setOwner(newProjectArg_);
            command_._runCommand();
            form_._runClose();
        }
Exemple #27
0
 public virtual void _setContain(IContain nContain)
 {
 }
Exemple #28
0
 public void _setContain(IContain nContain)
 {
     mContain = nContain;
 }
Exemple #29
0
 public ToolStripItemAdapt()
 {
     mToolStripItem = null;
     mContain = null;
     mType = null;
 }
Exemple #30
0
 public MultiControl()
 {
     mControlName = null;
     mContain = null;
 }
Exemple #31
0
 public override void _setContain(IContain nContain)
 {
     mContain = nContain;
     base._setContain(nContain);
 }
Exemple #32
0
 public Control()
 {
     mControlName = null;
     mContain = null;
 }
 public RadioButtonCheckedChangedArg()
 {
     mContain = null;
     mChecked = false;
 }
Exemple #34
0
 public Widgets()
 {
     mWidgets = new List<IWidget>();
     mContain = null;
     mName = null;
 }
Exemple #35
0
 public ToolStripItem()
 {
     mContain = null;
 }
Exemple #36
0
 public override void _setContain(IContain nContain)
 {
     mContain = nContain;
 }