public SignPictureCT(Home_ChangeTogSignPadCT_Function callback1, Home_GoBackTogSignPictureCT_Function callback2) { MouseTool.ShowLoading(); InitializeComponent(); Home_ChangeTogSignPadCT_Event += callback1; Home_GoBackTogSignPictureCT_Event += callback2; base.Loaded += new RoutedEventHandler(SignPictureCT_Loaded); }
public SignPictureCT(Home_ChangeTogSignPadCT_Function callback1, Home_GoBackTogSignPictureCT_Function callback2) { MouseTool.ShowLoading(); InitializeComponent(); this.Home_ChangeTogSignPadCT_Event += callback1; this.Home_GoBackTogSignPictureCT_Event += callback2; this.Loaded += SignPictureCT_Loaded; //MouseTool.ShowArrow(); }
public SignPadCT(string UserID = "", string UserName = "", string DeptID = "", string PicUrl = "", Home_GoBackTogSignPictureCT_Function callback1 = null) { MouseTool.ShowLoading(); InitializeComponent(); this.UserID = UserID; this.UserName = UserName; this.DeptID = DeptID; this.PicUrl = PicUrl; Home_GoBackTogSignPictureCT_Event += callback1; sb = (Storyboard)TryFindResource("sb"); base.Loaded += new RoutedEventHandler(SignPadCT_Loaded); base.Unloaded += new RoutedEventHandler(SignPadCT_Unloaded); }
private void txtUnSigned_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Home_GoBackTogSignPictureCT_Function home_GoBackTogSignPictureCT_Function = null; Home_GoBackTogSignPictureCT_Function home_GoBackTogSignPictureCT_Function2 = null; _003C_003Ec__DisplayClasse _003C_003Ec__DisplayClasse = new _003C_003Ec__DisplayClasse(); string text = ""; DataTable dataTable = MSCE.GetDataTable("select AllowIpRange from NowLogin"); if (dataTable.Rows.Count > 0) { text = dataTable.Rows[0]["AllowIpRange"].ToString(); } if (!text.Equals("") && !IpTool.CheckInNowWifi(text)) { AutoClosingMessageBox.Show("您不在會議室範圍內,無法使用此功能"); return; } _003C_003Ec__DisplayClasse.Home_Window = Enumerable.FirstOrDefault(Enumerable.OfType <Home>(Application.Current.Windows)); if (_003C_003Ec__DisplayClasse.Home_Window == null) { return; } string deptID = (signinDataUser.DeptID == null) ? "" : signinDataUser.DeptID; if (!signinDataUser.ID.Trim().Equals("")) { ContentControl cC = _003C_003Ec__DisplayClasse.Home_Window.CC; string iD = signinDataUser.ID; string name = signinDataUser.Name; string signedPic = signinDataUser.SignedPic; if (home_GoBackTogSignPictureCT_Function == null) { home_GoBackTogSignPictureCT_Function = new Home_GoBackTogSignPictureCT_Function(_003C_003Ec__DisplayClasse._003CtxtUnSigned_MouseLeftButtonDown_003Eb__a); } cC.Content = new SignPadCT(iD, name, deptID, signedPic, home_GoBackTogSignPictureCT_Function); } else { ContentControl cC2 = _003C_003Ec__DisplayClasse.Home_Window.CC; string userName = string.Format("{0} 來賓", signinDataUser.Dept); string signedPic2 = signinDataUser.SignedPic; if (home_GoBackTogSignPictureCT_Function2 == null) { home_GoBackTogSignPictureCT_Function2 = new Home_GoBackTogSignPictureCT_Function(_003C_003Ec__DisplayClasse._003CtxtUnSigned_MouseLeftButtonDown_003Eb__b); } cC2.Content = new SignPadCT("dept", userName, deptID, signedPic2, home_GoBackTogSignPictureCT_Function2); } }
private static void _003CInitEvent_003Eb__f(object sender, MouseButtonEventArgs e) { Home_GoBackTogSignPictureCT_Function home_GoBackTogSignPictureCT_Function = null; _003C_003Ec__DisplayClass1c _003C_003Ec__DisplayClass1c = new _003C_003Ec__DisplayClass1c(); _003C_003Ec__DisplayClass1c.Home_Window = Enumerable.FirstOrDefault(Enumerable.OfType <Home>(Application.Current.Windows)); if (_003C_003Ec__DisplayClass1c.Home_Window != null) { ContentControl cC = _003C_003Ec__DisplayClass1c.Home_Window.CC; if (home_GoBackTogSignPictureCT_Function == null) { home_GoBackTogSignPictureCT_Function = new Home_GoBackTogSignPictureCT_Function(_003C_003Ec__DisplayClass1c._003CInitEvent_003Eb__10); } cC.Content = new SignPadCT("guest", "來賓", "", "", home_GoBackTogSignPictureCT_Function); } }
public SignPadCT(string UserID = "", string UserName = "", string DeptID = "", string PicUrl = "", Home_GoBackTogSignPictureCT_Function callback1 = null) { MouseTool.ShowLoading(); InitializeComponent(); this.UserID = UserID; this.UserName = UserName; this.DeptID = DeptID; this.PicUrl = PicUrl; this.Home_GoBackTogSignPictureCT_Event += callback1; sb = (Storyboard)this.TryFindResource("sb"); this.Loaded += SignPadCT_Loaded; this.Unloaded += SignPadCT_Unloaded; //MouseTool.ShowArrow(); }