Пример #1
0
 static public ResultSelector GetInstance()
 {
     if (only_one == null)
     {
         only_one = new ResultSelector();
     }
     return(only_one);
 }
Пример #2
0
        void OnSelectorClosed(object sender, EventArgs e)
        {
            //if (!(sender as ResultSelector).IsAttachedToThisControl(this))
            //    return;

            ResultSelector.GetInstance().Closing -= OnSelectorClosing;
            ResultSelector.GetInstance().Closed  -= OnSelectorClosed;

            this.SelectorOpened = false;
        }
Пример #3
0
        protected override void OpenSelector()
        {
            if (m_result == null)
            {
                return;
            }

            ResultSelector.GetInstance().OpenMe(this, this.SelectorCover, this.ParentForm, this.m_result);

            ResultSelector.GetInstance().Closing += OnSelectorClosing;
            ResultSelector.GetInstance().Closed  += OnSelectorClosed;
            this.SelectorOpened = true;
        }
Пример #4
0
 public static ResultSelector GetInstance()
 {
     if (only_one == null)
         only_one = new ResultSelector();
     return only_one;
 }
Пример #5
0
 protected override void CloseSelector(bool saveBeforeClose)
 {
     ResultSelector.GetInstance().CloseMe(saveBeforeClose);
 }