Ejemplo n.º 1
0
 public CharAttribs( 
     System.Boolean       p1,
     System.Boolean       p2,
     System.Boolean       p3,
     System.Boolean       p4,
     System.Boolean       p5,
     System.Boolean       p6,
     System.Boolean       p7,
     System.Boolean       p12,
     System.Drawing.Color p13,
     System.Boolean       p14,
     System.Drawing.Color p15,
     uc_Chars             p16,
     uc_Chars             p17,
     uc_Chars             p18,
     System.Boolean       p19)
 {
     //prntSome.printSome("CharAttribs");
     IsBold          = p1;
     IsDim           = p2;
     IsUnderscored   = p3;
     IsBlinking      = p4;
     IsInverse       = p5;
     IsPrimaryFont   = p6;
     IsAlternateFont = p7;
     UseAltColor     = p12;
     AltColor        = p13;
     UseAltBGColor   = p14;
     AltBGColor      = p15;
     GL              = p16;
     GR              = p17;
     GS              = p18;
     IsDECSG         = p19;
 }
Ejemplo n.º 2
0
        public static void TrackAppException(String activity, String method, string exceptionName, string message, Boolean isFatalException)
        {
            var builder = new HitBuilders.ExceptionBuilder();
            var exceptionMessageToTrack = string.Format("{0}, Method : {1}\nException Name : {2}\nMessage : \n{3}", activity, method,
                exceptionName, message);
            builder.SetDescription(exceptionMessageToTrack);
            builder.SetFatal(isFatalException);

            Rep.Instance.GaTracker.Send(builder.Build());
        }
Ejemplo n.º 3
0
        public static void TrackAppException(string activity, String method, Exception exception, Boolean isFatalException)
        {
            var builder = new HitBuilders.ExceptionBuilder();
            var exceptionMessageToTrack = string.Format("{0}, Method : {1}\nException type : {2}, Exception Message : {3}\nStack Trace : \n{4}", activity, method,
                exception.GetType(),exception.Message, exception.StackTrace);

            builder.SetDescription(exceptionMessageToTrack);
            builder.SetFatal(isFatalException);

            Rep.Instance.GaTracker.Send(builder.Build());
        }
 public uc_maptxtcaretinfo(
     PrimeMainMenu r1,
     System.Drawing.Point r2,
     uc_formpartsinfo r3,
     uc_formpartsinfo r4,
     ElmScrns r5,
     System.Boolean r6,
     UseWhat r7
     )
 {
     inMenu = r1;
     curPos = r2;
     frmfield = r3;
     frmvalue = r4;
     seqScrn = r5;
     hasValue = r6;
     useThis = r7;
 }
Ejemplo n.º 5
0
 public void GetBeaconAdvertisement([XmlElement("NewBeaconAdvertisementEnabled", Namespace = "")] out boolean BeaconAdvertisementEnabled)
 {
     object[] results = this.Invoke("GetBeaconAdvertisement", new object[] {  });
     BeaconAdvertisementEnabled = (boolean)results[0];
 }
Ejemplo n.º 6
0
 public static void AreNotEqual(this IAssertion assertion, System.String notExpected, System.String actual, System.Boolean ignoreCase, System.Globalization.CultureInfo culture, System.String message, params System.Object[] parameters)
 {
     Assert.AreNotEqual(notExpected, actual, ignoreCase, culture, message, parameters);
 }
Ejemplo n.º 7
0
 public LineFeature()
 {
     _Probability = new System.Double();
     _Rho = new System.Double();
     _Alpha = new System.Double();
     _Covariance = new ReactiveRTM.RTC.PointCovariance2D();
     _Start = new ReactiveRTM.RTC.Point2D();
     _End = new ReactiveRTM.RTC.Point2D();
     _StartSighted = new System.Boolean();
     _EndSighted = new System.Boolean();
 }
Ejemplo n.º 8
0
		static extern GdkPixbufPointer gdk_pixbuf_new (GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height);
        /// <summary>Initializes a new instance of the AbstractNonEmpty class.</summary>
        protected AbstractNonEmpty(
			System.UInt32 identity,
			System.Boolean oneField,
			ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
        {
            this.identity = identity;
            this.oneField = oneField;
        }
Ejemplo n.º 10
0
 public void GetInfo(out boolean Enable, out string Status, out string MaxBitRate, out ui1 Channel, out string SSID, out string BeaconType, out boolean MACAddressControlEnabled, out string Standard, out string BSSID, out string BasicEncryptionModes, out string BasicAuthenticationMode, out ui1 MaxCharsSSID, out ui1 MinCharsSSID, out string AllowedCharsSSID, out ui1 MinCharsPSK, out ui1 MaxCharsPSK, out string AllowedCharsPSK)
 {
     ((wlanconfig2)SoapHttpClientProtocol).GetInfo(out Enable, out Status, out MaxBitRate, out Channel, out SSID, out BeaconType, out MACAddressControlEnabled, out Standard, out BSSID, out BasicEncryptionModes, out BasicAuthenticationMode, out MaxCharsSSID, out MinCharsSSID, out AllowedCharsSSID, out MinCharsPSK, out MaxCharsPSK, out AllowedCharsPSK);
 }
Ejemplo n.º 11
0
 public void GetIPTVOptimized([XmlElement("NewX_AVM-DE_IPTVoptimize", Namespace = "")] out boolean IPTVoptimize)
 {
     object[] results = this.Invoke("GetIPTVOptimized", new object[] {  });
     IPTVoptimize = (boolean)results[0];
 }
Ejemplo n.º 12
0
 public void GetSpecificAssociatedDeviceInfo([XmlElement("NewAssociatedDeviceMACAddress", Namespace = "")] string AssociatedDeviceMACAddress, [XmlElement("NewAssociatedDeviceIPAddress", Namespace = "")] out string AssociatedDeviceIPAddress, [XmlElement("NewAssociatedDeviceAuthState", Namespace = "")] out boolean AssociatedDeviceAuthState, [XmlElement("NewX_AVM-DE_Speed", Namespace = "")] out ui2 Speed, [XmlElement("NewX_AVM-DE_SignalStrength", Namespace = "")] out ui1 SignalStrength)
 {
     object[] results = this.Invoke("GetSpecificAssociatedDeviceInfo", new object[] { AssociatedDeviceMACAddress });
     AssociatedDeviceIPAddress = (string)results[0];
     AssociatedDeviceAuthState = (boolean)results[1];
     Speed          = (ui2)results[2];
     SignalStrength = (ui1)results[3];
 }
Ejemplo n.º 13
0
        public static void TrackAppException(Class activity, String method, Exception exception, Boolean isFatalException)
		{
            TrackAppException(activity.SimpleName, method, exception, isFatalException);
		}
Ejemplo n.º 14
0
 public TimedBoolean(global::RTC.TimedBoolean source)
 {
     _Tm = Converter.RtcTimeToDateTime(source.tm);
     _Data = source.data;
 }
Ejemplo n.º 15
0
 public TimedBoolean()
 {
     _Tm = default(System.DateTime);
     _Data = new System.Boolean();
 }
Ejemplo n.º 16
0
 public ActArrayActuatorGeometry(global::RTC.ActArrayActuatorGeometry source)
 {
     _Type = (ReactiveRTM.RTC.ActArrayActuatorType)source.type;
     _Length = source.length;
     _Orientation = new ReactiveRTM.RTC.Orientation3D(source.orientation);
     _Axis = new ReactiveRTM.RTC.Vector3D(source.axis);
     _MinRange = source.minRange;
     _Centre = source.centre;
     _MaxRange = source.maxRange;
     _HomePosition = source.homePosition;
     _HasBrakes = source.hasBrakes;
 }
Ejemplo n.º 17
0
 public ActArrayActuatorGeometry()
 {
     _Type = new ReactiveRTM.RTC.ActArrayActuatorType();
     _Length = new System.Double();
     _Orientation = new ReactiveRTM.RTC.Orientation3D();
     _Axis = new ReactiveRTM.RTC.Vector3D();
     _MinRange = new System.Double();
     _Centre = new System.Double();
     _MaxRange = new System.Double();
     _HomePosition = new System.Double();
     _HasBrakes = new System.Boolean();
 }
Ejemplo n.º 18
0
 public LineFeature(global::RTC.LineFeature source)
 {
     _Probability = source.probability;
     _Rho = source.rho;
     _Alpha = source.alpha;
     _Covariance = new ReactiveRTM.RTC.PointCovariance2D(source.covariance);
     _Start = new ReactiveRTM.RTC.Point2D(source.start);
     _End = new ReactiveRTM.RTC.Point2D(source._end);
     _StartSighted = source.startSighted;
     _EndSighted = source.endSighted;
 }
Ejemplo n.º 19
0
 public void SetHighFrequencyBand([XmlElement("NewEnableHighFrequency", Namespace = "")] boolean EnableHighFrequency)
 {
     this.Invoke("SetHighFrequencyBand", new object[] { EnableHighFrequency });
 }
Ejemplo n.º 20
0
        public TermWindow()
        {
            m_KeyboardHookManager = new MouseKeyboardActivityMonitor.KeyboardHookListener(new MouseKeyboardActivityMonitor.WinApi.GlobalHooker());
            m_KeyboardHookManager.Enabled = true;

            ////prntSome.printSome("TermWindow");
            // set the display options
            this.SetStyle (
                System.Windows.Forms.ControlStyles.UserPaint |
                System.Windows.Forms.ControlStyles.AllPaintingInWmPaint|
                System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer,
                true);

            this.settingsFrm    = new WindowsFormsApplication1.settings();
            this.runOffline     = true;
            this.Keyboard       = new uc_Keyboard (this);
            this.Parser         = new uc_Parser   ();
            this.NvtParser      = new uc_TelnetParser   ();
            this.Caret          = new uc_Caret    ();
            this.Modes          = new uc_Mode ();
            this.TabStops       = new uc_TabStops ();
            this.SavedCarets    = new System.Collections.Generic.List<uc_CaretAttribs> ();

            this.Name       = this.frmTitleRDB;
            this.Text       = this.frmTitleRDB;

            this.Caret.Pos  = new System.Drawing.Point (0, 0);
            this.CharSize   = new System.Drawing.Size ();
            this.rdbFont    = new System.Drawing.Font(this.TypeFace, this.TypeSize, this.TypeStyle);
            this.Font       = this.rdbFont;
            this.mousepnt   = new System.Drawing.Point();

            this.FGColor      = System.Drawing.Color.FromArgb (200, 200, 200);
            this.BackColor = System.Drawing.Color.FromArgb(0, 0, 0);//(0,0,160);
            this.BoldColor    = System.Drawing.Color.FromArgb (255, 255, 255);
            this.BlinkColor   = System.Drawing.Color.Red;

            this.G0 = new uc_Chars (uc_Chars.Sets.ASCII);
            this.G1 = new uc_Chars (uc_Chars.Sets.ASCII);
            this.G2 = new uc_Chars (uc_Chars.Sets.DECSG);
            this.G3 = new uc_Chars (uc_Chars.Sets.DECSG);

            this.CharAttribs.GL = G0;
            this.CharAttribs.GR = G2;
            this.CharAttribs.GS = null;

            this.GetFontInfo ();

            // Create and initialize a VScrollBar.
            VertScrollBar = new uc_VertScrollBar();

            // Dock the scroll bar to the right side of the form.
            VertScrollBar.Dock = System.Windows.Forms.DockStyle.Right;

            // Add the scroll bar to the form.
            //Controls.Add (VertScrollBar);

            this.CreateMenu ();

            // create the character grid (rows by columns). This is a shadow of what's displayed
            // Set the window size to match
            this.SetSize (25, 80);

            this.rdbAutoProcess = new uc_autoprocess(this.Rows, this.Columns, this);

            this.Parser.ParserEvent       += new ParserEventHandler    (CommandRouter);
            this.Keyboard.KeyboardEvent   += new KeyboardEventHandler  (DispatchMessage);
            this.NvtParser.NvtParserEvent += new NvtParserEventHandler (TelnetInterpreter);
            this.RefreshEvent             += new RefreshEventHandler   (ShowBuffer);
            this.RxdDataLoaded            += new RxdDataLoadedHander   (StartAutoProcess);
            this.CaretOffEvent            += new CaretOffEventHandler  (this.CaretOff);
            this.CaretOnEvent             += new CaretOnEventHandler   (this.CaretOn);
            this.RxdTextEvent             += new RxdTextEventHandler   (this.NvtParser.ParseString);

            //rdb
            //this.OnClickConnect (new System.Object (), new System.EventArgs ());
            //endrdb
            this.rbdlg = new System.Windows.Forms.OpenFileDialog();
            this.rbdlg.Multiselect = false;

            this.scrnwidth = this.CharSize.Width * this.Columns;
            this.scrnheight = (this.CharSize.Height * this.Rows) + this.CharSize.Height;

            /*this._rdbitems = new System.Collections.Generic.List<string>();
            this._rdbitems.Add("aaa");
            this._rdbitems.Add("bbb");
            this._rdbitems.Add("ccc");
            this.rdbListBox = new System.Windows.Forms.ListBox();
            this.rdbListBox.Top = 500;
            this.rdbListBox.Left = 500;
            this.rdbListBox.DataSource = this._rdbitems;
            this.Controls.Add(this.rdbListBox);

            this.rdbNextBtn = new System.Windows.Forms.Button();
            this.rdbNextBtn.Text = "Next";
            this.rdbNextBtn.Location = new System.Drawing.Point(600, 500);

            this.Controls.Add(this.rdbNextBtn);*/
            //this.GotFocus += MainWindow_GotFocus;
            //this.LostFocus += MainWindow_LostFocus;
            this.CenterToScreen();
        }
Ejemplo n.º 21
0
 public void GetNightControl([XmlElement("NewNightControl", Namespace = "")] out string NightControl, [XmlElement("NewNightTimeControlNoForcedOff", Namespace = "")] out boolean NightTimeControlNoForcedOff)
 {
     object[] results = this.Invoke("GetNightControl", new object[] {  });
     NightControl = (string)results[0];
     NightTimeControlNoForcedOff = (boolean)results[1];
 }
Ejemplo n.º 22
0
        private void OnClickClearScrn(System.Object Sender, System.EventArgs e)
        {
            this.Text = this.frmTitleRDB;
            for (int i = 0; i < this.Rows; i++)
            {
                System.Array.Clear(this.CharGrid[i], 0, this.CharGrid[i].Length);
                System.Array.Clear(this.AttribGrid[i], 0, this.AttribGrid[i].Length);
            }
            this.ShowBuffer();
            this.runOffline = false;

            this.Caret.Pos.X = 0;
            this.Caret.Pos.Y = 0;
            //rdbmsg.Clear();
            rdbsb.Clear();
        }
Ejemplo n.º 23
0
 public uc_KeyInfo(
     System.UInt16  p1,
     System.Boolean p2,
     System.String  p3,
     System.String  p4,
     System.UInt32  p5,
     System.UInt32  p6)
 {
     //prntSome.printSome("uc_KeyInfo");
     ScanCode    = p1;
     ExtendFlag  = p2;
     Modifier    = p3;
     OutString   = p4;
     Flag        = p5;
     FlagValue   = p6;
 }
Ejemplo n.º 24
0
        private void OnClickConnect(System.Object Sender, System.EventArgs e)
        {
            //prntSome.printSome("OnClickConnect");
            HostWindow hostWindow = new HostWindow ();
            //hostWindow.HostName.Text = "192.168.3.85";
            hostWindow.HostName.Text = "5.8.68.217";
            this.runOffline = true;
            System.Windows.Forms.DialogResult RetVal = hostWindow.ShowDialog (this);

            if (RetVal == System.Windows.Forms.DialogResult.OK)
            {
                hostWindow.Dispose ();
                this.runOffline = false;
                this.Connect (hostWindow.HostName.Text);
            }
            else
            {
                hostWindow.Dispose ();
                this.runOffline = true;
                //System.Windows.Forms.Application.ExitThread ();
                //System.Windows.Forms.Application.Exit ();
            }
        }
            internal Builder(AbstractNonEmpty immutable)
            {
                this.immutable = immutable;

                this.oneField = immutable.OneField;
            }
Ejemplo n.º 26
0
        private void OnClickDataStream(System.Object Sender, System.EventArgs e)
        {
            //rdbmsg.Clear();
            this.Text = this.frmTitleRDB;
            this.runOffline = true;
            System.Windows.Forms.DialogResult rbdgres = this.rbdlg.ShowDialog();
            if (rbdgres == System.Windows.Forms.DialogResult.OK)
            {
                string sReceived = System.IO.File.ReadAllText(this.rbdlg.FileName);
                //sReceived = sReceived.Remove(sReceived.Length - 2);
                rdbmsg.Insert(0, string.Format("{0}\n", sReceived));
                //rdbmsg.AppendLine(sReceived);
                this.Text += " : "+this.rbdlg.FileName;
                //System.Windows.Forms.MessageBox.Show(sReceived);
                this.Invoke(this.RxdTextEvent, new System.String[] { System.String.Copy(sReceived) });
                this.Invoke(this.RefreshEvent);

                /*
                string tmpstr = "";
                //this.CharGrid
                for (int ii = 0; ii < this.CharGrid.Length; ii++)
                {
                    var str = new string(this.CharGrid[ii]);
                    tmpstr += str + "\n";
                    //tmpstr = new string(this.CharGrid[
                }
                prntSome.printSome(tmpstr, "chargrid", counttxtscrnrdb);
                counttxtscrnrdb++;
                */
            }
            //else System.Windows.Forms.MessageBox.Show("open - cancel");
        }
        /// <summary>Initializes a new instance of the NotSoEmptyDerived class.</summary>
        protected NotSoEmptyDerived(
			System.UInt32 identity,
			System.Boolean oneField,
			ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
            : base(identity: identity)
        {
            this.oneField = oneField;
            if (!skipValidation.Value) {
                this.Validate();
            }
        }
Ejemplo n.º 28
0
 partial void OnSignalExpectedChanging(System.Boolean oldValue, System.Boolean newValue, ref bool handled);
Ejemplo n.º 29
0
		static extern void gtk_paint_arrow (GtkStylePointer style, GdkWindowPointer window, GtkStateType state_type, GtkShadowType shadow_type, ref GdkRectangle area, GtkWidgetPointer widget, string detail, GtkArrowType arrow_type, gboolean fill, gint x, gint y, gint width, gint height);
Ejemplo n.º 30
0
 partial void OnUseNoiseFloorChanging(System.Boolean oldValue, System.Boolean newValue, ref bool handled);
Ejemplo n.º 31
0
 public static void AreNotEqual(this IAssertion assertion, System.String notExpected, System.String actual, System.Boolean ignoreCase, System.Globalization.CultureInfo culture)
 {
     Assert.AreNotEqual(notExpected, actual, ignoreCase, culture);
 }
Ejemplo n.º 32
0
 // returns a list of ProductSearchByCategoryCode contracts from ProductSearchService
 // links:
 //  docLink: http://sql2x.org/documentationLink/ca70bf3f-58a1-476b-8441-3946d79cbe03
 // parameters:
 //  productCategoryCode: filter by this key, 00000000-0000-0000-0000-000000000000 for no filter
 //  onParent: filter by this key, 00000000-0000-0000-0000-000000000000 for no filter
 public List <ProductSearchByCategoryCodeContract> ProductSearchByCategoryCode(System.String productCategoryCode, System.Boolean onParent)
 {
     return(base.Channel.ProductSearchByCategoryCode(productCategoryCode, onParent));
 }
Ejemplo n.º 33
0
 public static void AreNotEqual(this IAssertion assertion, System.String notExpected, System.String actual, System.Boolean ignoreCase)
 {
     Assert.AreNotEqual(notExpected, actual, ignoreCase);
 }
Ejemplo n.º 34
0
 // returns a list of ProductSearchByCategory contracts from ProductSearchService
 // links:
 //  docLink: http://sql2x.org/documentationLink/ca70bf3f-58a1-476b-8441-3946d79cbe03
 // parameters:
 //  productCategoryId: filter by this key, 00000000-0000-0000-0000-000000000000 for no filter
 //  onParent: filter by this key, 00000000-0000-0000-0000-000000000000 for no filter
 public List <ProductSearchByCategoryContract> ProductSearchByCategory(System.Guid productCategoryId, System.Boolean onParent)
 {
     return(base.Channel.ProductSearchByCategory(productCategoryId, onParent));
 }
Ejemplo n.º 35
0
 public void SetBeaconAdvertisement([XmlElement("NewBeaconAdvertisementEnabled", Namespace = "")] boolean BeaconAdvertisementEnabled)
 {
     this.Invoke("SetBeaconAdvertisement", new object[] { BeaconAdvertisementEnabled });
 }
Ejemplo n.º 36
0
		virtual protected void init(System.String input, System.Boolean cc_on)
		{
			this.input = System.Text.RegularExpressions.Regex.Replace(input.Trim(), "(\n\r|\r\n|\r|\n)+", MyMin.LF.ToString());
            this.input = System.Text.RegularExpressions.Regex.Replace(this.input.Trim(), "(\\\\\n)+", "");//有问题,修改之
			this.length = this.input.Length;
			this.cc_on = cc_on;
			this.a = MyMin.LF;
			this.action(3);
			while (this.a != MyMin.EOS)
			{
				switch (this.a)
				{
					case MyMin.SPACE:
						this.action(this.isAlNum(this.b) ? 1 : 2);
						break;
					case MyMin.LF:
						switch (this.b)
						{
							case '{':
							case '[':
							case '(':
							case '+':
							case '-':
								this.action(1);
								break;
							case MyMin.SPACE:
								this.action(3);
								break;
							default:
								this.action(this.isAlNum(this.b) ? 1 : 2);
								break;
						}
						break;
					default:
						switch (this.b)
						{
							case MyMin.SPACE:
								this.action(this.isAlNum(this.a) ? 1 : 3);
								break;
							case MyMin.LF:
								switch (this.a)
								{
									case '}':
									case ']':
									case ')':
									case '+':
									case '-':
									case '"':
									case '\'':
										this.action(1);
										break;
									default:
										this.action(this.isAlNum(this.a) ? 1 : 3);
										break;
								}
								break;
							default:
								this.action(1);
								break;
						}
						break;
				}
			}
		}
Ejemplo n.º 37
0
 public void SetEnable([XmlElement("NewEnable", Namespace = "")] boolean Enable)
 {
     this.Invoke("SetEnable", new object[] { Enable });
 }
 public virtual bool InitializeRequest(System.Web.HttpContext context, bool suppressAutoDetectRedirectout, System.Boolean& supportSessionIDReissue)
 {
 }
Ejemplo n.º 39
0
 public void SetStickSurfEnable([XmlElement("NewStickSurfEnable", Namespace = "")] boolean StickSurfEnable)
 {
     this.Invoke("SetStickSurfEnable", new object[] { StickSurfEnable });
 }
 public virtual void SaveSessionID(System.Web.HttpContext context, string idout, System.Boolean& redirectedout, System.Boolean& cookieAdded)
 {
 }
Ejemplo n.º 41
0
 public void SetIPTVOptimized([XmlElement("NewX_AVM-DE_IPTVoptimize", Namespace = "")] boolean IPTVoptimize)
 {
     this.Invoke("SetIPTVOptimized", new object[] { IPTVoptimize });
 }
 partial void OnSwitchStateChanged(System.Boolean value);
Ejemplo n.º 43
0
 public void SetEnable(boolean Enable)
 {
     ((wlanconfig2)SoapHttpClientProtocol).SetEnable(Enable);
 }
 public static object GetDataItem(object containerout, System.Boolean& foundDataItem)
 {
 }
        /// <summary>
        ///		No Metadata Documentation available.
        /// </summary>
        /// <param name="apiContext"></param>
        /// <param name="eventsInfoes"></param>
        /// <param name="clientWins">if true system properties will not be overwritten by Api</param>
        /// <returns></returns>
        public static Helpers.ActionResult Update(Helpers.ApiContext apiContext, System.Collections.Generic.IEnumerable <Entities.EventsInfo> eventsInfoes, System.Boolean clientWins)
        {
            // API doesn't allow null parameters. This method requires at least 1 item in the collection.
            if (apiContext == null)
            {
                throw new System.ArgumentNullException("apiContext");
            }
            if (eventsInfoes == null)
            {
                throw new System.ArgumentNullException("eventsInfoes");
            }
            if (eventsInfoes.Count() == 0)
            {
                throw new System.ArgumentOutOfRangeException("eventsInfoes");
            }

            // Verify user is authorized to perform action, otherwise throw exception.
            Security.SecurityHandler.SetApiContext(apiContext);
            Helpers.ActionResult result = Helpers.ActionResult.Factory(true);

            try
            {
                Model.OrmsContext context = (Model.OrmsContext)apiContext.CurrentContext;
                foreach (Entities.EventsInfo eventsInfo in eventsInfoes)
                {
                    OnUpdating(apiContext, eventsInfo, false);

                    // ATTACH object
                    AttachObject(apiContext, "EventsInfoes", eventsInfo);

                    if (!clientWins)
                    {
                        // SET system level properties
                        SetSystemProperties(apiContext, eventsInfo);
                    }

                    // SET modified
                    SetModified(apiContext, eventsInfo);
                }

                if (clientWins)
                {
                    context.Refresh(System.Data.Objects.RefreshMode.ClientWins, eventsInfoes);
                }

                context.SaveChanges();                   // Save Changes
                DetachObjects(apiContext, eventsInfoes); // Clean ObjectState cache

                foreach (Entities.EventsInfo eventsInfo in eventsInfoes)
                {
                    OnUpdated(apiContext, eventsInfo, false);
                }
            }
            catch (System.Data.OptimisticConcurrencyException ex)
            {
                object forDebugging = ex;
                HandleOptimisticConcurrencyException(apiContext, eventsInfoes, ex, ref result);
                //throw Helpers.Exceptions.OptimisticConcurrencyException.Factory(ex);
            }
            catch (System.Exception ex)
            {
                object forDebugging = ex;
                throw;    // Helpers.Exceptions.UpdateEntityException.Factory(ex);
            }

            return(result);
        }
 public virtual bool LoadPostData(string key, System.Collections.Specialized.NameValueCollection data, object controlPrivateDataout, System.Boolean& dataChanged)
 {
 }
Ejemplo n.º 47
0
        public void KeyDown(System.Windows.Forms.Message KeyMess)
        {
            //prntSome.printSome("KeyDown");
            System.Byte[] lBytes;
            System.Byte[] wBytes;
            System.UInt16 KeyValue    = 0;
            System.UInt16 RepeatCount = 0;
            System.Byte   ScanCode    = 0;
            System.Byte   AnsiChar    = 0;
            System.UInt16 UniChar     = 0;
            System.Byte   Flags       = 0;

            lBytes = System.BitConverter.GetBytes (KeyMess.LParam.ToInt32 ());
            wBytes = System.BitConverter.GetBytes (KeyMess.WParam.ToInt32 ());
            RepeatCount = System.BitConverter.ToUInt16 (lBytes, 0);
            ScanCode    = lBytes[2];
            Flags       = lBytes[3];

            // key down messages send the scan code in wParam whereas
            // key press messages send the char and unicode values in this word
            if (KeyMess.Msg == WMCodes.WM_SYSKEYDOWN ||
                KeyMess.Msg == WMCodes.WM_KEYDOWN)
            {
                KeyValue = System.BitConverter.ToUInt16 (wBytes, 0);

                // set the key down flags. I know you can get alt from lparam flags
                // but this feels more consistent
                switch (KeyValue)
                {
                    case 16:  // Shift Keys
                    case 160: // L Shift Key
                    case 161: // R Shift Keys
                        this.ShiftIsDown = true;
                        return;

                    case 17:  // Ctrl Keys
                    case 162: // L Ctrl Key
                    case 163: // R Ctrl Key
                        this.CtrlIsDown = true;
                        return;

                    case 18:  // Alt Keys (Menu)
                    case 164: // L Alt Key
                    case 165: // R Ctrl Key
                        this.AltIsDown = true;
                        return;

                    default:
                        break;
                }

                System.String Modifier = "Key";

                if (this.ShiftIsDown)
                {
                    Modifier = "Shift";
                }
                else if (this.CtrlIsDown)
                {
                    Modifier = "Ctrl";
                }
                else if (this.AltIsDown)
                {
                    Modifier = "Alt";
                }

                // the key pressed was not a modifier so check for an override string
                System.String OutString = KeyMap.Find (ScanCode, System.Convert.ToBoolean (Flags & 0x01), Modifier, Parent.Modes.Flags);

                this.LastKeyDownSent = false;

                if (OutString != "")
                {
                    // Flag the event so that the associated WM_CHAR event (if any) is ignored
                    this.LastKeyDownSent = true;

                    //Parent.NvtParser.ParseString (OutString);
                    //this.Parent.Invalidate ();

                    KeyboardEvent (this, OutString, true);
                }

            }
            else if (KeyMess.Msg == WMCodes.WM_SYSKEYUP ||
                    KeyMess.Msg == WMCodes.WM_KEYUP)
            {
                KeyValue = System.BitConverter.ToUInt16 (wBytes, 0);

                switch (KeyValue)
                {
                    case 16:  // Shift Keys
                    case 160: // L Shift Key
                    case 161: // R Shift Keys
                        this.ShiftIsDown = false;
                        break;

                    case 17:  // Ctrl Keys
                    case 162: // L Ctrl Key
                    case 163: // R Ctrl Key
                        this.CtrlIsDown = false;
                        break;

                    case 18:  // Alt Keys (Menu)
                    case 164: // L Alt Key
                    case 165: // R Ctrl Key
                        this.AltIsDown = false;
                        break;

                    default:
                        break;
                }
            }

            else if (KeyMess.Msg == WMCodes.WM_SYSCHAR ||
                     KeyMess.Msg == WMCodes.WM_CHAR)
            {
                AnsiChar    = wBytes[0];
                UniChar     = System.BitConverter.ToUInt16 (wBytes, 0);

                // if there's a string mapped to this key combo we want to ignore the character
                // as it has been overriden in the keydown event

                // only send the windows generated char if there was no custom
                // string sent by the keydown event
                if (this.LastKeyDownSent == false)
                {
                    // send the character straight to the host if we haven't already handled the actual key press
                    KeyboardEvent (this, System.Convert.ToChar (AnsiChar).ToString (), true);
                }
            }

            //prntSome.printSome(System.String.Format("AnsiChar = {0} Result = {1} ScanCode = {2} KeyValue = {3} Flags = {4} Repeat = {5} KeyMess.Msg = {6}\n ",
            //    AnsiChar, KeyMess.Result, ScanCode, KeyValue, Flags, RepeatCount, KeyMess.Msg), "KeyDown", countkeyrdb);
            //countkeyrdb++;

            //System.Console.Write ("AnsiChar = {0} Result = {1} ScanCode = {2} KeyValue = {3} Flags = {4} Repeat = {5}\n ",
              //  AnsiChar, KeyMess.Result, ScanCode, KeyValue, Flags, RepeatCount);
        }
Ejemplo n.º 48
0
 /// <inheritdoc />
 /// <summary>
 ///  Instantiate a new instance with the given availability.
 /// </summary>
 /// <param name="isAvailable">
 ///</param>
 public NetworkStatusChangedArgs(System.Boolean isAvailable) => this.IsAvailable = isAvailable;
            internal Builder(NotSoEmptyDerived immutable)
            {
                this.immutable = immutable;

                this.oneField = immutable.OneField;
            }
Ejemplo n.º 50
0
 public async System.Threading.Tasks.Task <SoftmakeAll.SDK.OperationResult> CopyAsync(System.String SourceContainerName, System.String SourceStorageFileName, System.String TargetContainerName, System.String TargetStorageFileName, System.Boolean Overwrite)
 {
     return(await this.CopyAsync(SourceContainerName, new System.String[] { SourceStorageFileName }, TargetContainerName, new System.String[] { TargetStorageFileName }, Overwrite));
 }
        /// <summary>Initializes a new instance of the NonEmptyBase class.</summary>
        protected NonEmptyBase(
			System.UInt32 identity,
			System.Boolean oneField,
			ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
        {
            this.identity = identity;
            this.oneField = oneField;
            if (!skipValidation.Value) {
                this.Validate();
            }
        }
Ejemplo n.º 52
0
        public async System.Threading.Tasks.Task <SoftmakeAll.SDK.OperationResult> CopyAsync(System.String SourceContainerName, System.String[] SourceStorageFileNames, System.String TargetContainerName, System.String[] TargetStorageFileNames, System.Boolean Overwrite)
        {
            SoftmakeAll.SDK.CloudStorage.Azure.Environment.Validate();

            SoftmakeAll.SDK.OperationResult OperationResult = new SoftmakeAll.SDK.OperationResult();

            if ((System.String.IsNullOrWhiteSpace(SourceContainerName)) || (SourceStorageFileNames == null) || (SourceStorageFileNames.Length == 0) || (System.String.IsNullOrWhiteSpace(TargetContainerName)) || (TargetStorageFileNames == null) || (TargetStorageFileNames.Length == 0))
            {
                OperationResult.Message = "The SourceContainerName, SourceStorageFileNames, TargetContainerName and TargetStorageFileNames cannot be null.";
                return(OperationResult);
            }

            if (SourceStorageFileNames.Length != TargetStorageFileNames.Length)
            {
                OperationResult.Message = "The SourceStorageFileNames and TargetStorageFileNames must be the same length.";
                return(OperationResult);
            }

            try
            {
                global::Azure.Storage.Blobs.BlobContainerClient SourceBlobContainerClient = new global::Azure.Storage.Blobs.BlobContainerClient(SoftmakeAll.SDK.CloudStorage.Azure.Environment._ConnectionString, SourceContainerName);
                global::Azure.Storage.Blobs.BlobContainerClient TargetBlobContainerClient;
                if (SourceContainerName != TargetContainerName)
                {
                    TargetBlobContainerClient = new global::Azure.Storage.Blobs.BlobContainerClient(SoftmakeAll.SDK.CloudStorage.Azure.Environment._ConnectionString, TargetContainerName);
                }
                else
                {
                    TargetBlobContainerClient = SourceBlobContainerClient;
                }


                using (System.Threading.SemaphoreSlim SemaphoreSlim = new System.Threading.SemaphoreSlim(SourceStorageFileNames.Length))
                {
                    System.Collections.Generic.List <System.Threading.Tasks.Task> CopyTasks = new System.Collections.Generic.List <System.Threading.Tasks.Task>();
                    for (System.Int32 i = 0; i < SourceStorageFileNames.Length; i++)
                    {
                        System.String SourceStorageFileName = SourceStorageFileNames[i];
                        global::Azure.Storage.Blobs.BlobClient SourceBlobClient = SourceBlobContainerClient.GetBlobClient(SourceStorageFileName);
                        if (!(await SourceBlobClient.ExistsAsync()))
                        {
                            continue;
                        }

                        System.String TargetStorageFileName = TargetStorageFileNames[i];
                        global::Azure.Storage.Blobs.BlobClient TargetBlobClient = TargetBlobContainerClient.GetBlobClient(TargetStorageFileName);
                        if ((!(Overwrite)) && (await TargetBlobClient.ExistsAsync()))
                        {
                            continue;
                        }

                        await SemaphoreSlim.WaitAsync();

                        CopyTasks.Add(System.Threading.Tasks.Task.Run(async() => { await TargetBlobClient.StartCopyFromUriAsync(SourceBlobClient.Uri); SemaphoreSlim.Release(); }));
                    }

                    if (CopyTasks.Any())
                    {
                        await System.Threading.Tasks.Task.WhenAll(CopyTasks);
                    }
                }
            }
            catch (System.Exception ex)
            {
                OperationResult.Message = ex.Message;
                return(OperationResult);
            }

            OperationResult.ExitCode = 0;
            return(OperationResult);
        }
            internal Builder(NonEmptyBase immutable)
            {
                this.immutable = immutable;

                this.oneField = immutable.OneField;
            }
Ejemplo n.º 54
0
 public static void IsTrue(this IAssertion assertion, System.Boolean condition, System.String message, params System.Object[] parameters)
 {
     Assert.IsTrue(condition, message, parameters);
 }
Ejemplo n.º 55
0
		static extern void gdk_draw_rectangle (GdkDrawablePointer drawable, GdkGCPointer gc, gboolean filled, gint x, gint y, gint width, gint height);
Ejemplo n.º 56
0
 public static void IsTrue(this IAssertion assertion, System.Boolean condition)
 {
     Assert.IsTrue(condition);
 }
Ejemplo n.º 57
0
		static extern void gtk_widget_style_get (GtkWidgetPointer widget, string property, out gboolean value, IntPtr nullTerminator);
Ejemplo n.º 58
0
 public static void AreEqual(this IAssertion assertion, System.String expected, System.String actual, System.Boolean ignoreCase, System.String message, params System.Object[] parameters)
 {
     Assert.AreEqual(expected, actual, ignoreCase, message, parameters);
 }
Ejemplo n.º 59
0
		static extern void g_object_get (gpointer @object, string property_name, out gboolean value, IntPtr nullTerminator);
Ejemplo n.º 60
0
 public RangeType(global::org.omg.SDOPackage.RangeType source)
 {
     _Min = source.min;
     _Max = source.max;
     _MinInclusive = source.min_inclusive;
     _MaxInclusive = source.max_inclusive;
 }