예제 #1
0
        public object SetStrengthOptions(Object o)
        {
            StrengthOptions so = (StrengthOptions)o;

            h.strength_options.Copy(so);
            h.OnChanged();
            return(h.strength_options.Clone());
        }
예제 #2
0
        public MhoraGlobalOptions()
        {
            HOptions = new HoroscopeOptions();
            SOptions = new StrengthOptions();
            mLat     = new HMSInfo(47, 40, 27, HMSInfo.dir_type.NS);
            mLon     = new HMSInfo(-122, 7, 13, HMSInfo.dir_type.EW);
            mTz      = new HMSInfo(-7, 0, 0, HMSInfo.dir_type.EW);

            this.mfFixedWidth = new Font("Courier New", 10);
            this.mfGeneral    = new Font("Microsoft Sans Serif", 10);

            this.bDasaHoverSelect      = false;
            this.bDasaMoveSelect       = true;
            this.bDasaShowEvents       = true;
            this.miDasaShowEventsLevel = 2;
            this.mcDasaBackColor       = Color.Lavender;
            this.mcDasaDateColor       = Color.DarkRed;
            this.mcDasaPeriodColor     = Color.DarkBlue;
            this.mcDasaHighlightColor  = Color.White;

            this.mbShowSplashScreeen = true;
            this.mbSavePrefsOnExit   = true;
            this.msNotesExtension    = "txt";

            this.mcBodyLagna   = Color.BlanchedAlmond;
            this.mcBodySun     = Color.Orange;
            this.mcBodyMoon    = Color.LightSkyBlue;
            this.mcBodyMars    = Color.Red;
            this.mcBodyMercury = Color.Green;
            this.mcBodyJupiter = Color.Yellow;
            this.mcBodyVenus   = Color.Violet;
            this.mcBodySaturn  = Color.DarkBlue;
            this.mcBodyRahu    = Color.LightBlue;
            this.mcBodyKetu    = Color.LightPink;
            this.mcBodyOther   = Color.Black;

            this.mcVargaBackground   = Color.AliceBlue;
            this.mcVargaSecondary    = Color.CadetBlue;
            this.mcVargaGraha        = Color.DarkRed;
            this.mcVargaLagna        = Color.DarkViolet;
            this.mcVargaSAV          = Color.Gainsboro;
            this.mcVargaSpecialLagna = Color.Gray;
            this.mChartStyle         = DivisionalChart.UserOptions.EChartStyle.SouthIndian;
            this.mfVarga             = new Font("Times New Roman", 7);
            this.bVargaSquare        = true;
            this.bVargaShowDob       = true;
            this.bVargaShowSAVVarga  = true;
            this.bVargaShowSAVRasi   = false;

            this.mcTableBackground       = Color.Lavender;
            this.mcTableForeground       = Color.Black;
            this.mcTableInterleaveFirst  = Color.AliceBlue;
            this.mcTableInterleaveSecond = Color.Lavender;

            this.mcChakraBackground = Color.AliceBlue;
        }
예제 #3
0
        public object Copy(object o)
        {
            StrengthOptions so = (StrengthOptions)o;

            this.Colord = (FindStronger.EGrahaStrength[])so.Colord.Clone();
            this.NaisargikaDasaGraha = (FindStronger.EGrahaStrength[])so.NaisargikaDasaGraha.Clone();
            this.NavamsaDasaRasi     = (FindStronger.ERasiStrength[])so.NavamsaDasaRasi.Clone();
            this.MoolaDasaRasi       = (FindStronger.ERasiStrength[])so.MoolaDasaRasi.Clone();
            this.NarayanaDasaRasi    = (FindStronger.ERasiStrength[])so.NarayanaDasaRasi.Clone();
            this.NaisargikaDasaRasi  = (FindStronger.ERasiStrength[])so.NaisargikaDasaRasi.Clone();
            return(this.Clone());
        }
예제 #4
0
        public object Clone()
        {
            StrengthOptions opts = new StrengthOptions();

            opts.Colord = (FindStronger.EGrahaStrength[]) this.Colord.Clone();
            opts.NaisargikaDasaGraha = (FindStronger.EGrahaStrength[]) this.NaisargikaDasaGraha.Clone();
            opts.NavamsaDasaRasi     = (FindStronger.ERasiStrength[]) this.NavamsaDasaRasi.Clone();
            opts.MoolaDasaRasi       = (FindStronger.ERasiStrength[]) this.MoolaDasaRasi.Clone();
            opts.NarayanaDasaRasi    = (FindStronger.ERasiStrength[]) this.NarayanaDasaRasi.Clone();
            opts.NaisargikaDasaRasi  = (FindStronger.ERasiStrength[]) this.NaisargikaDasaRasi.Clone();
            return(opts);
        }