Ejemplo n.º 1
0
 public void SetMsg(YesDelegate a_deYes, object a_oObject, NoDelegate b_deNo, object b_oObject, string title, string message, string checkbox1Text, CheckBox1Delegate a_deCheck1, string checkbox2Text, CheckBox2Delegate a_deCheck2, eMsgType type)
 {
     if (a_deYes != null)
     {
         this.m_YesDelegate = (YesDelegate)Delegate.Combine(this.m_YesDelegate, new YesDelegate(a_deYes.Invoke));
     }
     if (a_oObject != null)
     {
         this.m_oYesObject = a_oObject;
     }
     if (b_deNo != null)
     {
         this.m_NoDelegate = (NoDelegate)Delegate.Combine(this.m_NoDelegate, new NoDelegate(b_deNo.Invoke));
     }
     if (b_oObject != null)
     {
         this.m_oNoObject = b_oObject;
     }
     this.SetMsgType(type);
     this.m_LbTitle.Text = title;
     this.m_LbNote.SetText(message);
     this.m_LbCheckBox1.SetText(checkbox1Text);
     if (a_deCheck1 != null)
     {
         this.m_Check1Delegate = (CheckBox1Delegate)Delegate.Combine(this.m_Check1Delegate, new CheckBox1Delegate(a_deCheck1.Invoke));
     }
     this.m_LbCheckBox2.SetText(checkbox2Text);
     if (a_deCheck2 != null)
     {
         this.m_Check2Delegate = (CheckBox2Delegate)Delegate.Combine(this.m_Check2Delegate, new CheckBox2Delegate(a_deCheck2.Invoke));
     }
     this.Show();
 }
Ejemplo n.º 2
0
 private UserDelegate GetCameraPositionDelegate()
 {
     if (camPositionDelegate == null)
     {
         return(noDelegate ?? (noDelegate = new NoDelegate(shared.Cpu)));
     }
     return(camPositionDelegate);
 }
Ejemplo n.º 3
0
    public override void InitializeComponent()
    {
        this.m_YesDelegate = null;
        this.m_oYesObject  = null;
        this.m_NoDelegate  = null;
        this.m_oNoObject   = null;
        UIBaseFileManager instance = NrTSingleton <UIBaseFileManager> .Instance;
        Form form = this;

        base.Scale = true;
        instance.LoadFileAll(ref form, "Message/DLG_MsgBox", G_ID.MSGBOX_DLG, true);
    }
Ejemplo n.º 4
0
 public void SetMsg(YesDelegate a_deYes, object a_oObject, NoDelegate b_deNo, object b_oObject, string title, string message, eMsgType type)
 {
     if (a_deYes != null)
     {
         this.m_YesDelegate = (YesDelegate)Delegate.Combine(this.m_YesDelegate, new YesDelegate(a_deYes.Invoke));
     }
     if (a_oObject != null)
     {
         this.m_oYesObject = a_oObject;
     }
     if (b_deNo != null)
     {
         this.m_NoDelegate = (NoDelegate)Delegate.Combine(this.m_NoDelegate, new NoDelegate(b_deNo.Invoke));
     }
     if (b_oObject != null)
     {
         this.m_oNoObject = b_oObject;
     }
     this.SetMsgType(type);
     this.m_LbTitle.Text = title;
     this.m_LbNote.SetText(message);
     this.Show();
 }
Ejemplo n.º 5
0
 public override void AddTo(SharedObjects shared)
 {
     shared.BindingMgr.AddGetter("DONOTHING", () => doNothingInstance ?? (doNothingInstance = new NoDelegate(shared.Cpu)));
 }