//End File Menu Item Click #endregion private void masterSettingMenuSelect(object sender, RoutedEventArgs e) { switch ((sender as MenuItem).Tag.ToString()) { case "0": obj = new ChildWindowPrototype(this, SelectedMenuItem.MS_EmployeeDetail); obj.Owner = this; obj.Show(); break; case "1": obj = new ChildWindowPrototype(this, SelectedMenuItem.MS_Bandh); obj.Owner = this; obj.Show(); //this.IsEnabled = true; break; case "2": obj = new ChildWindowPrototype(this, SelectedMenuItem.MS_Branch); obj.Owner = this; obj.Show(); break; case "3": break; case "4": break; case "5": obj = new ChildWindowPrototype(this, SelectedMenuItem.MS_Grade); obj.Owner = this; obj.Show(); break; case "6": obj = new ChildWindowPrototype(this, SelectedMenuItem.MS_Holiday); obj.Owner = this; obj.Show(); break; case "7": obj = new ChildWindowPrototype(this, SelectedMenuItem.MS_Leave); obj.Owner = this; obj.Show(); break; } }
private void reportMenuselect(object sender, RoutedEventArgs e) { MenuItem mItem = sender as MenuItem; switch (Convert.ToInt16(mItem.Tag.ToString())) { case 0: obj = new ChildWindowPrototype(this, SelectedMenuItem.report_MonthalyAttendance); obj.Owner = this; obj.Show(); break; default: break; } }